scripts/vmailmgrd.init
author "Tomas Zeman <tzeman@volny.cz>"
Sun, 20 Jan 2008 00:12:17 +0100
changeset 1 30113bfbe723
parent 0 6f7a81934006
permissions -rwxr-xr-x
Added tag vmailmgr-0.96.9 for changeset 6f7a81934006

#!/bin/sh
#
# vmailmgrd	This shell script takes care of starting and stopping
#		vmailmgrd (virtual mail manager daemon)
#
# chkconfig: 345 65 35
# description: vmailmgrd is the daemon required for the vmailmgr package
# to work properly.

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

# See how we were called.
case "$1" in
  start)
	svc-start vmailmgrd
        ;;
  stop)
	svc-stop vmailmgrd
        ;;
  status)
	svc-status vmailmgrd
	;;
  restart)
	"$0" stop
	sleep 1
	"$0" start
	;;
  *)
        echo "Usage: vmailmgrd {start|stop|restart|status}"
        exit 1
esac

exit 0