3 # exim This shell script takes care of starting and stopping
6 # chkconfig: 2345 80 30
8 # description: Exim is a Mail Transport Agent, which is the program \
9 # that moves mail from one machine to another.
12 # config: /etc/exim.cf
13 # pidfile: /var/run/exim.pid
16 # Source function library
17 . /etc/rc.d/init.d/functions
20 . /etc/sysconfig/network
24 if [ -f /etc/sysconfig/exim ]; then
31 # Check that networking is up.
32 [ "${NETWORKING}" = "no" ] && echo "Error: Networking is down" && exit 0
35 # See how we were called.
38 # Check if the service is already running?
39 if [ ! -f /var/lock/subsys/exim ]; then
41 daemon exim $([ "$DAEMON" = yes ] && echo -bd) \
42 $([ -n "$QUEUE" ] && echo -q$QUEUE)
44 echo "Exim already is running"
46 touch /var/lock/subsys/exim
50 show Shutting down exim:
52 rm -f /var/lock/subsys/exim
62 echo "Usage: $0 {start|stop|staus|restart|reload}"