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