slackbuilds_ponce/network/exim/contrib/rc.exim.new
Thomas Morper 7256be53cd network/exim: Updated for version 4.74.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-01-30 09:19:29 -06:00

28 lines
484 B
Bash

#!/bin/sh
# Start/stop/restart the Exim MTA
# Run as SMTP listener daemon, do queue runs every 15 mins.
EXIM_ARGS="-bd -q15m"
case "$1" in
start)
echo "Starting Exim"
/usr/sbin/exim $EXIM_ARGS
;;
stop)
echo "Stopping Exim"
pkill -f /usr/sbin/exim
;;
reload)
echo "Reloading Exim config"
pkill -HUP -f /usr/sbin/exim
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 {start|stop|reload|restart}"
;;
esac