#! /bin/sh
#
# chkconfig: - 80 30
# description: very-easy-to-use mailing list system

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
	exit 0
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
	echo -n "Starting quickml server: "
	daemon quickml
	RETVAL=$?
	echo
	;;
  stop)
	echo -n "Stopping quickml server: "
	killproc quickml
	RETVAL=$?
	echo
	;;
  status)
	status quickml
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  *)
	echo "Usage: quickml {start|stop|status|restart|reload}"
	exit 1
esac

exit $RETVAL
