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