mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
7256be53cd
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
28 lines
484 B
Bash
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
|