comparison debian/dcc-server.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-server.init
2 +++ dcc-1.2.74/debian/dcc-server.init
3 @@ -0,0 +1,51 @@
4 +#!/bin/sh
5 +#
6 +# dcc-server 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/dccd
11 +NAME=dcc-server
12 +DESC="Distributed Checksum Clearinghouse server"
13 +
14 +test -f $DAEMON || exit 0
15 +
16 +if [ -f /etc/default/dcc-server ]; then
17 + . /etc/default/dcc-server
18 +else
19 + echo "Missing file /etc/default/dcc-server"
20 + exit 1
21 +fi
22 +
23 +set -e
24 +
25 +case "$1" in
26 + start)
27 + echo -n "Starting $DESC: $NAME"
28 + start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
29 + --chuid dcc:dcc --exec $DAEMON -- $OPTIONS
30 + echo "."
31 + ;;
32 + stop)
33 + echo -n "Stopping $DESC: $NAME"
34 + start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
35 + echo "."
36 + ;;
37 + restart)
38 + echo -n "Restarting $DESC: $NAME"
39 + start-stop-daemon --stop --quiet --pidfile \
40 + /var/run/$NAME.pid --exec $DAEMON
41 + sleep 1
42 + start-stop-daemon --start --quiet --pidfile \
43 + /var/run/$NAME.pid --exec $DAEMON -- $OPTIONS
44 + echo "."
45 + ;;
46 + *)
47 + N=/etc/init.d/$NAME
48 + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
49 + echo "Usage: $N {start|stop|restart}" >&2
50 + exit 1
51 + ;;
52 +esac
53 +
54 +exit 0