buildrootschalter/package/exim/S86exim
Luca Ceresoli 7439694833 exim: new package
[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>
2014-04-05 18:31:51 +02:00

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 $?