#!/bin/sh
# VERSION=4

case "$1" in
	start)
		echo "Starting lighttpd..."
		lighttpd -f /etc/lighttpd.conf
		;;
	stop)
		echo "Stopping lighttpd..."
		killall lighttpd
		;;
	restart)
		${0} stop
		${0} start
		;;
	*)
		echo "Usage: $0 {start|stop|restart}" >&2
		exit 1
		;;
esac
