Accepting request 175736 from network

fix init script: start ddclient with "/usr/bin/perl ddclient",
otherwise startproc will falsely report that starting failed. (forwarded request 175698 from seife)

OBS-URL: https://build.opensuse.org/request/show/175736
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ddclient?expand=0&rev=33
This commit is contained in:
Stephan Kulow 2013-05-16 07:49:19 +00:00 committed by Git OBS Bridge
commit 0064264264
3 changed files with 10 additions and 2 deletions

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

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

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