[Unit] Description=Onion Monero Blockchain Explorer Health Check After=network.target xmrblocks.service [Service] Type=oneshot User=root ExecStart=/usr/local/bin/xmrblocks-healthcheck-push.sh # Longer than the script's 90s curl plus its push retries. A oneshot defaults to # TimeoutStartSec=90, which would kill the check mid-request on a cold cache and # report a failure that says nothing about the service. TimeoutStartSec=180 Environment=HEALTHCHECK_PUSH_URL={{ healthcheck_push_url }} Environment=HEALTHCHECK_PUSH_TOKEN={{ healthcheck_push_token }} Environment=XMRBLOCKS_URL=http://127.0.0.1:{{ xmrblocks_port }} StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target