scripts/vmailmgrd.init
changeset 0 6f7a81934006
equal deleted inserted replaced
-1:000000000000 0:6f7a81934006
       
     1 #!/bin/sh
       
     2 #
       
     3 # vmailmgrd	This shell script takes care of starting and stopping
       
     4 #		vmailmgrd (virtual mail manager daemon)
       
     5 #
       
     6 # chkconfig: 345 65 35
       
     7 # description: vmailmgrd is the daemon required for the vmailmgr package
       
     8 # to work properly.
       
     9 
       
    10 # Source function library.
       
    11 . /etc/rc.d/init.d/functions
       
    12 
       
    13 # See how we were called.
       
    14 case "$1" in
       
    15   start)
       
    16 	svc-start vmailmgrd
       
    17         ;;
       
    18   stop)
       
    19 	svc-stop vmailmgrd
       
    20         ;;
       
    21   status)
       
    22 	svc-status vmailmgrd
       
    23 	;;
       
    24   restart)
       
    25 	"$0" stop
       
    26 	sleep 1
       
    27 	"$0" start
       
    28 	;;
       
    29   *)
       
    30         echo "Usage: vmailmgrd {start|stop|restart|status}"
       
    31         exit 1
       
    32 esac
       
    33 
       
    34 exit 0