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