]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/tmdns/tmdns-20030116/busybox-init.d.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / tmdns / tmdns-20030116 / busybox-init.d.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- tmdns/init.d/initscript~busybox-init.d
7 +++ tmdns/init.d/initscript
8 @@ -2,34 +2,31 @@
9  #
10  
11  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
12 -DAEMON=/usr/local/sbin/tmdns
13 +DAEMON=`which tmdns 2>/dev/null`
14  NAME=tmdns
15  DESC="tmdns multicast DNS responder version 0.1"
16  
17 -test -f $DAEMON || exit 0
18 +test -n "$DAEMON" || exit 0
19  
20  set -e
21  
22  case "$1" in
23    start)
24         echo -n "Starting $DESC: "
25 -       start-stop-daemon --start --quiet --pidfile /var/run/tmdns.pid \
26 -               --exec $DAEMON
27 +       start-stop-daemon -S -x $DAEMON
28         echo "$NAME."
29         ;;
30  
31    stop)
32         echo -n "Stopping $DESC: "
33 -       start-stop-daemon --stop --quiet --pidfile /var/run/tmdns.pid \
34 -               --exec $DAEMON
35 +       start-stop-daemon -X -x $DAEMON
36         rm -f /var/run/tmdns.pid
37         echo "$NAME."
38         ;;
39  
40    reload)
41          echo "Reloading $DESC configuration files."
42 -        start-stop-daemon --stop --signal 1 --quiet --pidfile \
43 -               /var/run/tmdns.pid --exec $DAEMON
44 +        start-stop-daemon -X -s 1 -x $DAEMON
45         ;;
46  
47    restart|force-reload)
48 @@ -39,11 +36,9 @@
49         #       just the same as "restart".
50         #
51         echo -n "Restarting $DESC: "
52 -       start-stop-daemon --stop --quiet --pidfile \
53 -               /var/run/$NAME.pid --exec $DAEMON
54 +       start-stop-daemon -X -x $DAEMON
55         sleep 1
56 -       start-stop-daemon --start --quiet --pidfile \
57 -               /var/run/$NAME.pid --exec $DAEMON
58 +       start-stop-daemon -S -x $DAEMON
59         echo "$NAME."
60         ;;
61