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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Jonathan Steel (jsteel)
Tuesday, 16 July 2013, 19:41 GMT
Reason for closing:  Works for me
Comment by Jonathan Steel (jsteel) - Sunday, 07 July 2013, 21:12 GMT
I cannot replicate this; the pid file is created and removed at start and stop for me. It also is created and starts successfully at boot. It looks like it won't run at all for you; was there a reason you specifically mentioned "at boot"?

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.
Comment by Dave Reisner (falconindy) - Sunday, 07 July 2013, 23:18 GMT
If the pidfile by default goes to /var/run, the service file should not claim that the pidfile is written to /run, regardless of what /var/run is -- a symlink or a directory. Alternatively, override the location with the -pid flag.
Comment by trinux (trinux) - Tuesday, 09 July 2013, 10:56 GMT
In the file /usr/lib/systemd/system/ddclient.service

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.
Comment by Jonathan Steel (jsteel) - Tuesday, 09 July 2013, 19:14 GMT
If you put it as /var/run/ddclient.pid does it work for you still?
Comment by trinux (trinux) - Tuesday, 09 July 2013, 21:12 GMT
No

$ 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.
Comment by Jonathan Steel (jsteel) - Thursday, 11 July 2013, 18:43 GMT
What's the output of:

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).
Comment by trinux (trinux) - Thursday, 11 July 2013, 19:14 GMT
$ ls -l /var/ | grep run
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.

Loading...