Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / bootscripts / blfs / init.d / exim
blobbb3c61394486078a6a06e13d1ab0987db046d797
1 #!/bin/sh
2 # Begin $rc_base/init.d/exim
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting exim..."
13 loadproc /usr/sbin/exim -bd -q1m
16 stop)
17 echo "Stopping exim..."
18 killproc exim
21 status)
22 statusproc exim
25 restart)
26 $0 stop
27 sleep 1
28 $0 start
32 echo "Usage: $0 {start|stop|status|restart}"
33 exit 1
35 esac
37 # End $rc_base/init.d/exim