Last active
November 17, 2024 11:10
-
-
Save cedriczirtacic/34eb40702e21b64a0a2924fc161f71ce to your computer and use it in GitHub Desktop.
Systemd ddclient.service
This file contains hidden or 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
#/usr/lib/systemd/system/ddclient.service | |
[Unit] | |
Description=ddclient Service | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=/var/run/ddclient.pid | |
ExecStart=/sbin/ddclient -pid /var/run/ddclient.pid -file /etc/ddclient/ddclient.conf -daemon 300 | |
ExecStop=/usr/bin/pkill -SIGKILL -P /var/run/ddclient.pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have modified it to work without forking and pidfile and under separate user. This is for debian based systems, as the paths are different.
/etc/systemd/system/ddclient.service:
install ddclient from apt, create service and create user (the package does have it's own sysV init script/service, this is only necessary if you want to run ddclient under non-root/restricted user)