Bug 789567 - ddclient needs to be fixed to work with systemd
Summary: ddclient needs to be fixed to work with systemd
Keywords:
Status: CLOSED DUPLICATE of bug 710673
Alias: None
Product: Fedora
Classification: Fedora
Component: ddclient
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-11 12:08 UTC by Nicolas Mailhot
Modified: 2012-05-15 15:21 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-15 15:21:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
ddclient.service (437 bytes, application/octet-stream)
2012-02-18 08:55 UTC, Clive Messer
no flags Details
ddclient.spec for systemd (6.79 KB, text/x-rpm-spec)
2012-02-18 08:56 UTC, Clive Messer
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.