Skip to content

Instantly share code, notes, and snippets.

@brettbeeson
Created March 1, 2021 04:40
Show Gist options
  • Save brettbeeson/d85ca3d5462cd1e336b8ea915c68ebd8 to your computer and use it in GitHub Desktop.
Save brettbeeson/d85ca3d5462cd1e336b8ea915c68ebd8 to your computer and use it in GitHub Desktop.
Start the heartbeat.py service.
[Unit]
Description=Heartbeat
After=systemd-networkd-wait-online.service
# Try to restart forever!
StartLimitIntervalSec=0
StartLimitInterval=0
[Service]
# root to control led and reboot
User=root
Type=simple
Restart=always
RestartSec=60
[Service]
ExecStart=/home/pi/heartbeat.py
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment