systemctl.health-check.service.template
388 Bytes
[Unit]
Description=Health Check for ${SPUG_APP_NAME}
After=network.target
[Service]
Type=simple
User=${CURRENT_USER}
Group=${CURRENT_USER_GROUP}
WorkingDirectory=${SERVICE_RUN_DIR}/bin
ExecStart=${SERVICE_RUN_DIR}/bin/health-check.sh &
StandardOutput=null
StandardError=null
Restart=always
RestartSec=30
StartLimitIntervalSec=0
TimeoutStopSec=60s
[Install]
WantedBy=multi-user.target