Bug 789567

Summary: ddclient needs to be fixed to work with systemd
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: ddclientAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: djuran, h1k6zn2m, leamas.alec, redhat-bugzilla, thomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-15 15:21:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ddclient.service
none
ddclient.spec for systemd none

Description Nicolas Mailhot 2012-02-11 12:08:08 UTC
Description of problem:

ddclient is still missing a systemd unit file and its sysv script does not work with systemd

# systemctl start ddclient.service
Job failed. See system journal and 'systemctl status' for details.
[root@arekh nim ((unknown))]# systemctl status ddclient.service
ddclient.service - LSB: Client to update dynamic DNS host entries
	  Loaded: loaded (/etc/rc.d/init.d/ddclient)
	  Active: failed (Result: resources) since Sat, 11 Feb 2012 12:57:34 +0100; 15s ago
	 Process: 4255 ExecStart=/etc/rc.d/init.d/ddclient start (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/ddclient.service

Version-Release number of selected component (if applicable):

ddclient-3.8.0-5.fc17.noarch
systemd-42-1.fc17.x86_64
systemd-analyze-42-1.fc17.x86_64
systemd-gtk-42-1.fc17.x86_64
systemd-sysv-42-1.fc17.x86_64

Comment 1 Clive Messer 2012-02-18 08:55:08 UTC
Created attachment 564042 [details]
ddclient.service

Comment 2 Clive Messer 2012-02-18 08:56:14 UTC
Created attachment 564043 [details]
ddclient.spec for systemd

Comment 3 Alec Leamas 2012-03-27 18:33:08 UTC
As a temporary measure, one could also patch /etc/init.d/ddclient:

cache=/var/cache/ddclient/ddclient.cache
pid=/var/run/ddclient/ddclient.pid
pid_dir=/var/run/ddclient  ## patched (added)
RETVAL=0

start() {
        # Check that networking is up.
        [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

        echo -n $"Starting $prog: "
        [ -f $cache ] || touch $cache
        rm -rf $pid_dir  ##
        mkdir $pid_dir && chown ddclient:ddclient $pid_dir || exit $? ##
        chown ddclient:ddclient $cache && chmod 600 $cache || exit $?
        daemon --user=ddclient --pidfile=$pid $exec $DDCLIENT_OPTIONS

Comment 4 Jonathan Kamens 2012-05-15 15:21:25 UTC

*** This bug has been marked as a duplicate of bug 710673 ***