]> git.pld-linux.org Git - packages/ez-ipupdate.git/commitdiff
- support $PROGRAM_ARGS from /etc/sysconfig/ez-ipupdate and stop with SIGQUIT
authorradek <radek@pld-linux.org>
Wed, 7 Jul 2004 19:39:12 +0000 (19:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ez-ipupdate.init -> 1.4

ez-ipupdate.init

index d5be46bbec3375f095a1f80e561ef4f96c69c157..bf09261f3ee17b1a02aac92a948b44b8745279ba 100644 (file)
@@ -13,6 +13,7 @@
 # Get network config
 . /etc/sysconfig/network
 
+PROGRAM_ARGS="-d -c /etc/ez-ipupdate.conf"
 # Get service config
 [ -f /etc/sysconfig/ez-ipupdate ] && . /etc/sysconfig/ez-ipupdate
 
@@ -25,7 +26,7 @@ if is_yes "${NETWORKING}"; then
 else
        exit 0
 fi
-                       
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -33,7 +34,7 @@ case "$1" in
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/ez-ipupdate ]; then
                msg_starting "ez-ipupdate dynamic dns client"
-               daemon /usr/bin/ez-ipupdate -d -c /etc/ez-ipupdate.conf
+               daemon /usr/bin/ez-ipupdate $PROGRAM_ARGS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ez-ipupdate         
        else
@@ -43,7 +44,7 @@ case "$1" in
   stop)
        if [ -f /var/lock/subsys/ez-ipupdate ]; then
                msg_stopping "ez-ipupdate dynamic dns client"
-               killproc ez-ipupdate
+               killproc ez-ipupdate -QUIT
                rm -f /var/run/ez-ipupdate.pid /var/lock/subsys/ez-ipupdate >/dev/null 2>&1
        else
                msg_not_running "ez-ipupdate dynamic dns client"
This page took 0.089856 seconds and 4 git commands to generate.