python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / tinyhttpd / S85tinyhttpd
blobfb512a0375d683b671cc358323ef90b43efcce54
1 #! /bin/sh
3 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
4 NAME=tinyhttpd
6 test -x /usr/sbin/$NAME || exit 0
7 mkdir -p /var/www
9 case "$1" in
10 start)
11 printf "Starting $NAME: "
12 $NAME > /dev/null &
13 echo "done"
15 stop)
16 printf "Stopping $NAME: "
17 killall -9 $NAME
18 echo "done"
20 restart)
21 printf "Restarting $NAME: "
22 killall -9 $NAME
23 sleep 1
24 $NAME > /dev/null &
25 echo "done"
28 echo "Usage: /etc/init.d/S85tinyhttpd {start|stop|restart}" >&2
29 exit 1
31 esac
33 exit 0