diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-07-20 14:37:48 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2007-07-20 14:37:48 +0000 |
commit | 0ffc8419b44179821f2f86fe9fb6e89543405be2 (patch) | |
tree | 6b000e3298def6357c6ce3ea72d4f069b1a6785b /package/thttpd/S90thttpd | |
parent | 4ccf17da47f4823e658900bcbfa598b255f5575a (diff) |
Fix hdparm to cross build correctly. Also fix thttpd to build and install sanely and add simplified start up.
Diffstat (limited to 'package/thttpd/S90thttpd')
-rwxr-xr-x | package/thttpd/S90thttpd | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/thttpd/S90thttpd b/package/thttpd/S90thttpd new file mode 100755 index 000000000..76949bd33 --- /dev/null +++ b/package/thttpd/S90thttpd @@ -0,0 +1,43 @@ +#!/bin/sh + +DAEMON=/usr/sbin/thttpd +test -f $DAEMON || exit 0 + +start() { + echo -n "Starting thttpd: " + $DAEMON -C /etc/thttpd.conf + if [ $? != 0 ]; then + echo "FAILED" + exit 1 + else + echo "done" + fi +} + +stop() { + echo -n "Stopping ProFTPD: " + kill -9 `cat /var/run/thttpd.pid` + echo "done" +} + +case "$1" in + start) + start + ;; + + stop) + stop + ;; + + restart) + stop + start + ;; + + *) + echo "Usage: /etc/init.d/S90thttpd {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 |