1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#! @SHELL@
#
# chkconfig: 2345 15 85
# description: Authlib - Courier authentication library.
#
#
prefix="@prefix@"
exec_prefix="@exec_prefix@"
sysconfdir="@sysconfdir@"
sbindir="@sbindir@"
if test ! -f @authdaemonrc@
then
echo "@authdaemonrc@ does not exist, forgot make install-configure?"
exit 1
fi
case "$1" in
start)
cd /
# Start daemons.
touch /var/lock/subsys/courier-authlib
echo -n "Starting Courier authentication services:"
$sbindir/authdaemond start
echo " authdaemond"
;;
stop)
echo -n "Stopping Courier authentication services:"
$sbindir/authdaemond stop
echo " authdaemond"
rm -f /var/lock/subsys/courier-authlib
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n "Starting Courier authentication services:"
$sbindir/authdaemond restart
echo " authdaemond"
;;
esac
exit 0
|