Skip to content

Instantly share code, notes, and snippets.

@elyscape elyscape/heartbeat.conf
Last active Jul 18, 2019

Embed
What would you like to do?
Systemd configuration for healthchecks.io heartbeat
ENDPOINT=https://whatever
[Unit]
Description=Heartbeat
[Service]
Type=oneshot
EnvironmentFile=/etc/heartbeat.conf
ExecStart=/usr/bin/curl -fsS --retry 3 ${ENDPOINT}
StandardOutput=null
User=nobody
[Unit]
Description=Send heartbeat every 5 minutes
[Timer]
OnCalendar=*-*-* *:00/5:00
Persistent=true
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.