From 39544acbe14a071512dba8b9775c0f63e9d9de1dd19229bffa344ca419886ede Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Wed, 15 May 2013 11:49:54 +0000 Subject: [PATCH] Accepting request 175698 from home:seife:branches:network fix init script: start ddclient with "/usr/bin/perl ddclient", otherwise startproc will falsely report that starting failed. OBS-URL: https://build.opensuse.org/request/show/175698 OBS-URL: https://build.opensuse.org/package/show/network/ddclient?expand=0&rev=23 --- ddclient.changes | 6 ++++++ ddclient.spec | 2 +- rc.ddclient | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ddclient.changes b/ddclient.changes index 778f822..4e9f36b 100644 --- a/ddclient.changes +++ b/ddclient.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 15 07:58:26 UTC 2013 - seife+obs@b1-systems.com + +- fix init script: start ddclient with "/usr/bin/perl ddclient", + otherwise startproc will falsely report that starting failed. + ------------------------------------------------------------------- Wed Oct 24 21:30:01 UTC 2012 - chris@computersalat.de diff --git a/ddclient.spec b/ddclient.spec index 000cb20..c59494f 100644 --- a/ddclient.spec +++ b/ddclient.spec @@ -1,7 +1,7 @@ # # spec file for package ddclient # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/rc.ddclient b/rc.ddclient index a17ffd0..8115ed9 100644 --- a/rc.ddclient +++ b/rc.ddclient @@ -75,7 +75,9 @@ rc_reset case "$1" in start) echo -n "Starting ddclient daemon :" - /sbin/startproc "$DDCLIENT_BIN" -daemon $dd_intervall "$dd_use" $DDCLIENT_OPTIONS -pid /var/run/ddclient.pid + # startproc does check the name of the binary, and this is "perl" in this case, + # so better start it this way or systemd will not know it is running + /sbin/startproc /usr/bin/perl "$DDCLIENT_BIN" -daemon $dd_intervall "$dd_use" $DDCLIENT_OPTIONS -pid /var/run/ddclient.pid # remember status and be verbose rc_status -v