Created
June 7, 2016 12:23
-
-
Save macfanatic/e223a7e8f94cf4f1a63b0d283e17d72d to your computer and use it in GitHub Desktop.
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=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