%PDF- %PDF-
Direktori : /proc/self/root/etc/rc5.d/ |
Current File : //proc/self/root/etc/rc5.d/S34mailman |
#!/bin/bash # # mailman - System V init script for CentOS # Parts of this file were taken from the CentOS 4.3 # /etc/init.d/mailman script which is under the GPL # # chkconfig: 2345 34 34 # description: mailman # source function library . /etc/rc.d/init.d/cpfunctions NAME="mailman" MAILMANHOME="/usr/local/cpanel/3rdparty/mailman" PROG=$MAILMANHOME/bin/mailmanctl PIDFILE="/var/run/$NAME.pid" start() { echo "Starting $NAME: " $PROG start } stop() { echo "Shutting down $NAME: " $PROG stop } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; status) status $PROG ;; *) echo "Usage: $NAME {start|stop|restart|status}" esac