#! /bin/sh
start() {
	echo -n "Starting qwikWeb services: "
	/usr/local/qwik/bin/qwikweb-server
	echo
}

stop() {
	echo -n "Stopping qwikWeb services: "
	kill `cat /usr/local/qwik/log/qwikweb.pid`
	echo
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	sleep 1
	start
	;;
  *)
	echo "Usage: qwikweb-ctl {start|stop|restart}"
	exit 1
esac

exit 0
