3 # exim This shell script takes care of starting and stopping Exim.
5 # chkconfig: 2345 80 30
6 # description: Exim is a Mail Transport Agent, which is the program \
7 # that moves mail from one machine to another.
10 # pidfile: /var/run/exim.pid
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 # Source networking configuration.
16 . /etc/sysconfig/network
18 # Source exim configureation.
19 if [ -f /etc/sysconfig/exim ] ; then
25 # Check that networking is up.
26 if is_no "${NETWORKING}"; then
31 # See how we were called.
35 if [ ! -f /var/lock/subsys/exim ]; then
37 daemon exim -bd $([ -n "$QUEUE" ] && echo -q$QUEUE)
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/exim
41 msg_Already_Running Exim
46 if [ -f /var/lock/subsys/exim ]; then
49 rm -f /var/lock/subsys/exim >/dev/null 2>&1
67 msg_Usage "$0 {start|stop|restart|reload|status}"