- added missing cvs keywords
[packages/ggrelay.git] / ggrelay-init.patch
CommitLineData
c5d970ab
KK
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 @@
4506b51c 4 # chkconfig: - 90 25
5 # description: Gadu-Gadu relaying agent (proxy) daemon
6
c5d970ab 7+[ -f /etc/sysconfig/ggrelay ] || exit 0
4506b51c 8+
9 # Source function library.
10 . /etc/rc.d/init.d/functions
11
c5d970ab
KK
12@@ -43,22 +45,27 @@
13 }
4506b51c 14
15 start() {
16- echo -n $"Starting ggrelay: "
c5d970ab
KK
17- prepare_parms
18- daemon ggrelay $GGRELAY_PARMS
4506b51c 19- RETVAL=$?
20- echo
21- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
22+ if [ ! -f /var/lock/subsys/ggrelay ]; then
c5d970ab
KK
23+ msg_starting "GGrelay"
24+ prepare_parms
25+ daemon ggrelay $GGRELAY_PARMS
26+ RETVAL=$?
27+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ggrelay
4506b51c 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
c5d970ab 42+ msg_stopping "GGrelay"
4506b51c 43+ busy
44+ killproc ggrelay
c5d970ab 45+ rm -f /var/lock/subsys/ggrelay > /dev/null 2>&1
4506b51c 46+ ok
c5d970ab 47+ else
4506b51c 48+ msg_not_running "GGrelay"
c5d970ab 49+ fi
4506b51c 50 }
51
52 # See how we were called.
This page took 0.045812 seconds and 4 git commands to generate.