mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-08 20:28:13 +01:00
c0d2b64744
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
28 lines
554 B
Bash
28 lines
554 B
Bash
#!/bin/sh
|
|
|
|
# Run SMTP listening daemon, do queue runs every 10 mins.
|
|
EXIM_ARGS="-bd -q10m"
|
|
|
|
# Read alternative EXIM_ARGS line from /etc/default/exim.
|
|
test -f /etc/default/exim && source /etc/default/exim
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "starting exim"
|
|
/usr/sbin/exim $EXIM_ARGS
|
|
;;
|
|
stop)
|
|
echo "stopping exim"
|
|
pkill -F /var/run/exim.pid
|
|
;;
|
|
reload)
|
|
echo "reloading exim"
|
|
pkill -F /var/run/exim.pid -HUP
|
|
;;
|
|
restart)
|
|
$0 stop; sleep 2; $0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 {start|stop|reload|restart}"
|
|
;;
|
|
esac
|