Last active
April 1, 2018 17:42
-
-
Save vrdominguez/bc13a3859dfd2243f9ce to your computer and use it in GitHub Desktop.
dinaip service systemd
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=dinaip - DDNS service by Dinahosting | |
[Service] | |
Type=forking | |
ExecStart=/usr/sbin/dinaip -u USER -p PASSWD | |
ExecStop=/usr/sbin/dinaip -d | |
PIDFile=/var/run/dinaip.pid | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Thanks for the advice, tested and updated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Since dinaip it's a daemon it's better launch it with the forking type and allow systemd track the PID to restart the service if it fails.