FS#36043 - [ddclient] service don't start at boot
Attached to Project:
Community Packages
Opened by trinux (trinux) - Saturday, 06 July 2013, 08:57 GMT
Last edited by Jonathan Steel (jsteel) - Tuesday, 16 July 2013, 19:41 GMT
Opened by trinux (trinux) - Saturday, 06 July 2013, 08:57 GMT
Last edited by Jonathan Steel (jsteel) - Tuesday, 16 July 2013, 19:41 GMT
|
Details
ddclient service don't start at boot.
The /run/ddclient.pid is not created on my system at boot time. Additional info: * ddclient 3.8.1-8 Steps to reproduce: $ sudo systemctl restart ddclient.service Job for ddclient.service failed. See 'systemctl status ddclient.service' and 'journalctl -xn' for details. $ sudo systemctl status ddclient.service ddclient.service - Dynamic DNS Update Client Loaded: loaded (/usr/lib/systemd/system/ddclient.service; enabled) Active: failed (Result: resources) since Sat 2013-07-06 10:37:14 CEST; 15min ago Process: 1359 ExecStart=/usr/sbin/ddclient (code=exited, status=0/SUCCESS) Jul 06 10:37:14 vicente systemd[1]: PID file /run/ddclient.pid not readable (yet?) after start. Jul 06 10:37:14 vicente systemd[1]: Failed to start Dynamic DNS Update Client. Jul 06 10:37:14 vicente systemd[1]: Unit ddclient.service entered failed state. |
This task depends upon
The pid file is specified in /etc/ddclient/ddclient.conf and by default goes to /var/run. Maybe that symlink is messed up for you? Try changing the pid file location.
the line
PIDFile=/run/ddclient.pid
is commented or removed.
The service work,
$ sudo systemctl status ddclient.service
ddclient.service - Dynamic DNS Update Client
Loaded: loaded (/usr/lib/systemd/system/ddclient.service; enabled)
Active: inactive (dead) since mar 2013-07-09 12:16:40 CEST; 37min ago
Process: 237 ExecStart=/usr/sbin/ddclient (code=exited, status=0/SUCCESS)
jul 09 12:16:38 vicente systemd[1]: Starting Dynamic DNS Update Client...
jul 09 12:16:40 vicente systemd[1]: Started Dynamic DNS Update Client.
No need to declare the variable "pid" in ddclient.conf.
$ sudo systemctl status ddclient
ddclient.service - Dynamic DNS Update Client
Loaded: loaded (/usr/lib/systemd/system/ddclient.service; enabled)
Active: activating (start) since mar 2013-07-09 23:09:04 CEST; 39s ago
Process: 232 ExecStart=/usr/sbin/ddclient (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/ddclient.service
└─254 ddclient - sleeping for 17970 seconds
jul 09 23:09:04 vicente systemd[1]: Starting Dynamic DNS Update Client...
jul 09 23:09:06 vicente systemd[1]: PID file /var/run/ddclient.pid not readable (yet?) afte...art.
ls -l /var/ | grep run
ls -l / | grep run
I wonder if it's a permission issue.
Can you also confirm you don't have a /etc/ddclient/ddclient.conf.pacnew? (make sure there are no significant changes at least).
lrwxrwxrwx 1 root root 11 jun 3 16:42 lock -> ../run/lock
lrwxrwxrwx 1 root root 6 jun 3 16:42 run -> ../run
$ ls -l / | grep run
drwxr-xr-x 21 root root 580 jul 11 17:07 run
No ddclient.conf.pacnew. It's a fresh install.
Thanks.