Skip to content

Instantly share code, notes, and snippets.

@macfanatic
Created June 7, 2016 12:23
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 macfanatic/e223a7e8f94cf4f1a63b0d283e17d72d to your computer and use it in GitHub Desktop.
Save macfanatic/e223a7e8f94cf4f1a63b0d283e17d72d to your computer and use it in GitHub Desktop.
[Unit]
Description=udp-listener
After=multi-user.target
[Service]
Type=idle
WorkingDirectory=/var/apps/our-software
ExecStart=/var/apps/our-software/bin/udp-listener
User=pi
Group=pi
# if we crash, restart
RestartSec=1
Restart=always
# Logs go to syslog
# View with "sudo journalctl -u udp-listener"
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=udp-listener
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment