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

stop() {
	echo -n "Stopping QuickML services: "
#	kill `cat /var/run/quickml.pid`
	kill `cat /usr/local/qwik/log/quickml.pid`
	echo
}

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

exit 0
