blob: 3fb62f1bf3ad05c195302403d2b874bfc4d256bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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
|