]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/netperf/files/init
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / netperf / files / init
1 #!/bin/sh
2 #
3 #
4 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
5 # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.org>.
6 # Modified for Debian by Christoph Lameter <clameter@debian.org>
7 # Modified for openembedded by Bruno Randolf <bruno.randolf@4g-systems.biz>
8
9 PATH=/bin:/usr/bin:/sbin:/usr/sbin
10 DAEMON=/usr/sbin/netserver
11
12 test -f $DAEMON || exit 0
13
14 case "$1" in
15   start)
16                 echo -n "Starting network benchmark server: netserver"
17     start-stop-daemon -S -x $DAEMON > /dev/null 2>&1 
18                 echo "."
19     ;;
20   stop)
21                 echo -n "Stopping network benchmark server: netserver"
22     start-stop-daemon -K -x $DAEMON
23                 echo "."
24     ;;
25   #reload)
26     #
27     # If the daemon can reload its config files on the fly
28     # for example by sending it SIGHUP, do it here.
29     #
30     # If the daemon responds to changes in its config file
31     # directly anyway, make this a do-nothing entry.
32     #
33     # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON
34     # ;;
35   restart|force-reload)
36   #
37   # If the "reload" option is implemented, move the "force-reload"
38   # option to the "reload" entry above. If not, "force-reload" is
39   # just the same as "restart".
40   #
41     start-stop-daemon -K -x $DAEMON
42     sleep 1
43     start-stop-daemon -S -x $DAEMON
44     ;;
45   *)
46     echo "Usage: /etc/init.d/netperf {start|stop|restart|force-reload}"
47     exit 1
48     ;;
49 esac
50
51 exit 0