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
26 # Check that networking is up.
27 if is_no "${NETWORKING}"; then
32 [ -x /usr/bin/exim ] || exit 0
34 # See how we were called.
39 daemon /usr/bin/exim $([ "$DAEMON" = "yes" ] && echo -bd) \
40 $([ -n "$QUEUE" ] && echo -q$QUEUE)
41 touch /var/lock/subsys/exim
47 rm -f /var/lock/subsys/exim
57 msg_Usage "$0 {start|stop|restart|status}"