|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /etc/rc.d/init.d/ |
Upload File : |
#!/bin/bash
#
# dovecot
#
# chkconfig: 2345 82 82
# description: dovecot
. /etc/rc.d/init.d/cpfunctions
USER=root
SERVICE=dovecot
PIDFILE=/var/run/dovecot/master.pid
REGEX='(?:^|\s+|\/)dovecot$'
start() {
already_running $USER $SERVICE $PIDFILE $REGEX; RUNNING=$?
if [ 0 = $RUNNING ]; then
/usr/sbin/dovecot >/dev/null 2>&1
fi
}
stop() {
/usr/local/cpanel/scripts/ckillall -TERM dovecot >/dev/null 2>&1
/usr/local/cpanel/scripts/ckillall -TERM dovecot >/dev/null 2>&1
/usr/local/cpanel/scripts/ckillall -9 dovecot >/dev/null 2>&1
/usr/local/cpanel/scripts/ckillall -9 dovecot-auth >/dev/null 2>&1
}
status() {
echo
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
;;
esac