]> git.pld-linux.org Git - packages/ggrelay.git/commitdiff
- more changes in init
authortiwek <tiwek@pld-linux.org>
Sat, 7 Feb 2004 19:28:44 +0000 (19:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ggrelay-init.patch -> 1.1

ggrelay-init.patch [new file with mode: 0644]

diff --git a/ggrelay-init.patch b/ggrelay-init.patch
new file mode 100644 (file)
index 0000000..09c93d0
--- /dev/null
@@ -0,0 +1,51 @@
+--- ggrelay-1.0-rc5A/scripts/ggrelay.orig      2004-02-07 19:17:12.000000000 +0100
++++ ggrelay-1.0-rc5A/scripts/ggrelay   2004-02-07 20:23:18.000000000 +0100
+@@ -3,28 +3,35 @@
+ # chkconfig: - 90 25
+ # description: Gadu-Gadu relaying agent (proxy) daemon
++[ -f /etc/ggrelay/ggrelay.conf ] || exit 0
++
+ # Source function library.
+ . /etc/rc.d/init.d/functions
++
+ RETVAL=0
+ start() {
+-    echo -n $"Starting ggrelay: "
+-    daemon --check ggrelay xargs ggrelay -d \
+-              < /etc/ggrelay/ggrelay.conf
+-    RETVAL=$?
+-    echo
+-    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
++      if [ ! -f /var/lock/subsys/ggrelay ]; then
++          msg_starting "GGrelay"
++          daemon ggrelay -d /etc/ggrelay/ggrelay.conf
++          RETVAL=$?
++          [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
++      else
++              msg_already_running "GGrelay"
++      fi
+ }
+ stop() {
+-    echo -n $"Stopping ggrelay: "
+-    killproc ggrelay
+-    RETVAL=$?
+-    echo
+-    if [ $RETVAL -eq 0 ]; then
+-        rm -f /var/lock/subsys/ggrelay
+-    fi
++      if [ -f /var/lock/subsys/ggrelay ]; then
++              msg_stopping "GGrelay"
++              busy
++              killproc ggrelay
++              rm -f /var/lock/subsys/ggrelay > /dev/null 2>&1
++              ok
++      else
++              msg_not_running "GGrelay"
++      fi      
+ }
+ # See how we were called.
This page took 0.064827 seconds and 4 git commands to generate.