Created
March 1, 2021 04:40
-
-
Save brettbeeson/d85ca3d5462cd1e336b8ea915c68ebd8 to your computer and use it in GitHub Desktop.
Start the heartbeat.py service.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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