]> git.pld-linux.org Git - packages/ggrelay.git/blob - ggrelay-init.patch
- added missing cvs keywords
[packages/ggrelay.git] / ggrelay-init.patch
1 --- ggrelay-1.4/scripts/ggrelay.orig    2005-01-19 23:58:47.000000000 +0100
2 +++ ggrelay-1.4/scripts/ggrelay 2005-01-20 06:32:28.000000000 +0100
3 @@ -3,6 +3,8 @@
4  # chkconfig: - 90 25
5  # description: Gadu-Gadu relaying agent (proxy) daemon
6  
7 +[ -f /etc/sysconfig/ggrelay ] || exit 0
8 +
9  # Source function library.
10  . /etc/rc.d/init.d/functions
11  
12 @@ -43,22 +45,27 @@
13  }
14  
15  start() {
16 -    echo -n $"Starting ggrelay: "
17 -       prepare_parms
18 -    daemon ggrelay $GGRELAY_PARMS
19 -    RETVAL=$?
20 -    echo
21 -    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
22 +       if [ ! -f /var/lock/subsys/ggrelay ]; then
23 +               msg_starting "GGrelay"
24 +               prepare_parms
25 +               daemon ggrelay $GGRELAY_PARMS
26 +               RETVAL=$?
27 +               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
28 +       else
29 +               msg_already_running "GGrelay"
30 +       fi
31  }
32  
33  stop() {
34 -    echo -n $"Stopping ggrelay: "
35 -    killproc ggrelay
36 -    RETVAL=$?
37 -    echo
38 -    if [ $RETVAL -eq 0 ]; then
39 -        rm -f /var/lock/subsys/ggrelay
40 -    fi
41 +       if [ -f /var/lock/subsys/ggrelay ]; then
42 +               msg_stopping "GGrelay"
43 +               busy
44 +               killproc ggrelay
45 +               rm -f /var/lock/subsys/ggrelay > /dev/null 2>&1
46 +               ok
47 +       else
48 +               msg_not_running "GGrelay"
49 +       fi
50  }
51  
52  # See how we were called.
This page took 0.040886 seconds and 3 git commands to generate.