#!/bin/sh

case "$1" in
  start)
        echo "Starting webserver..."
        sh -cl "/usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf"
        ;;
  stop)
        echo -n "Stopping webserver..."
        killall lighttpd
        ;;
  restart|reload)
        "$0" stop
        "$0" start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?


