mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-03 02:13:29 +08:00
7439694833
[Thomas: - use $(INSTALL) instead of install - add AR and RANLIB variables in the local makefiles, so that the cross toolchain ar and ranlib utilities are used instead of the native ones. - move the init script initialization to the EXIM_INSTALL_INIT_SYSV variable. - Use parenthesis instead of curly braces to reference TARGET_DIR.] Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
349 B
Bash
27 lines
349 B
Bash
#!/bin/sh
|
|
#
|
|
# Start/stop exim
|
|
#
|
|
|
|
PIDFILE=/var/lock/exim/exim-daemon.pid
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting exim..."
|
|
start-stop-daemon -S -x exim -- -bd
|
|
;;
|
|
stop)
|
|
echo -n "Stopping exim..."
|
|
start-stop-daemon -K -o -p $PIDFILE
|
|
;;
|
|
restart|reload)
|
|
"$0" stop
|
|
"$0" start
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|