pass ARCH down to uClibc
[buildroot.git] / package / thttpd / S90thttpd
blob76949bd33faa8eaa4120b2c78cbc580aa2b63119
1 #!/bin/sh
3 DAEMON=/usr/sbin/thttpd
4 test -f $DAEMON || exit 0
6 start() {
7 echo -n "Starting thttpd: "
8 $DAEMON -C /etc/thttpd.conf
9 if [ $? != 0 ]; then
10 echo "FAILED"
11 exit 1
12 else
13 echo "done"
17 stop() {
18 echo -n "Stopping ProFTPD: "
19 kill -9 `cat /var/run/thttpd.pid`
20 echo "done"
23 case "$1" in
24 start)
25 start
28 stop)
29 stop
32 restart)
33 stop
34 start
38 echo "Usage: /etc/init.d/S90thttpd {start|stop|restart}"
39 exit 1
41 esac
43 exit 0