Skip to content

Instantly share code, notes, and snippets.

@michaeldimoudis
Last active September 16, 2018 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldimoudis/0989d4176e196877cdcbf0a9fb4fa31e to your computer and use it in GitHub Desktop.
Save michaeldimoudis/0989d4176e196877cdcbf0a9fb4fa31e to your computer and use it in GitHub Desktop.
systems service definition file
[Unit]
Description=Appliance
Requires=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/home/pi/apps/Appliance/Appliance
Restart=always
StartLimitInterval=5min
StartLimitBurst=5
StartLimitAction=reboot-force
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment