Mercurial > notdcc
comparison debian/dcc-client.init @ 2:f6716cb00029
Replace buggy stuff in deb dir, never make phone calls while working
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 14:29:12 +0100 |
parents | |
children | c7785b85f2d2 |
comparison
equal
deleted
inserted
replaced
1:9b8d79ac0dc3 | 2:f6716cb00029 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # dcc-client example file to build /etc/init.d/ scripts. | |
4 # This file should be used to construct scripts for /etc/init.d. | |
5 | |
6 PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
7 DAEMON=/usr/sbin/dccifd | |
8 NAME=dccifd | |
9 DESC="DCC program interface daemon" | |
10 | |
11 test -f $DAEMON || exit 0 | |
12 | |
13 set -e | |
14 | |
15 case "$1" in | |
16 start) | |
17 echo -n "Starting $DESC: $NAME" | |
18 start-stop-daemon --start --quiet --pidfile /var/run/dcc/$NAME.pid \ | |
19 --chuid dcc:dcc --exec $DAEMON -- $OPTIONS | |
20 echo "." | |
21 ;; | |
22 stop) | |
23 echo -n "Stopping $DESC: $NAME" | |
24 start-stop-daemon --oknodo --stop --quiet --exec $DAEMON | |
25 echo "." | |
26 ;; | |
27 restart) | |
28 echo -n "Restarting $DESC: $NAME" | |
29 start-stop-daemon --stop --quiet --pidfile \ | |
30 /var/run/dcc/$NAME.pid --exec $DAEMON | |
31 sleep 1 | |
32 start-stop-daemon --start --quiet --pidfile \ | |
33 /var/run/dcc/$NAME.pid --exec $DAEMON -- $OPTIONS | |
34 echo "." | |
35 #echo "\n" | |
36 ;; | |
37 *) | |
38 N=/etc/init.d/$NAME | |
39 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 | |
40 echo "Usage: $N {start|stop|restart}" >&2 | |
41 exit 1 | |
42 ;; | |
43 esac | |
44 | |
45 exit 0 |