#!/bin/sh # # Exim Start/Stop # # description: Exim is a Mail Transport Agent, a program \ # that moves mail from one machine to another. # processname: exim # config: /usr/local/exim/configure # pidfile: /var/run/exim4/exim.pid # 1999-12-10 Rafael Skodlar QUEUE=15m [ -f /usr/local/exim/bin/exim ] || exit 0 case "$1" in start) # Start exim echo -n "Starting Exim: " /usr/local/exim/bin/exim -bd -q$QUEUE ps ax|grep exim | grep -v status | grep -v grep ;; stop) # Stop daemons. echo -n "Shutting down exim: " killall exim rm /var/run/exim/exim.pid* echo ;; restart) $0 stop $0 start ;; status) ps ax|grep exim | grep -v status | grep -v grep [ -f /var/run/exim/exim.pid ] && (PID=`cat /var/run/exim/exim.pid*`;echo "PID: $PID") ;; *) echo "Usage: exim {start|stop|restart|status}" exit 1 esac exit 0