d9898ee8 |
1 | #! @SHELL@ |
2 | # |
3 | # chkconfig: 2345 15 85 |
4 | # description: Authlib - Courier authentication library. |
5 | # |
6 | # |
7 | |
8 | prefix="@prefix@" |
9 | exec_prefix="@exec_prefix@" |
10 | sysconfdir="@sysconfdir@" |
11 | sbindir="@sbindir@" |
12 | |
13 | if test ! -f @authdaemonrc@ |
14 | then |
15 | echo "@authdaemonrc@ does not exist, forgot make install-configure?" |
16 | exit 1 |
17 | fi |
18 | |
19 | case "$1" in |
20 | start) |
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 | ;; |
31 | stop) |
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 | ;; |
39 | restart) |
40 | $0 stop |
41 | $0 start |
42 | ;; |
43 | reload) |
44 | echo -n "Starting Courier authentication services:" |
45 | |
46 | $sbindir/authdaemond restart |
47 | |
48 | echo " authdaemond" |
49 | ;; |
50 | esac |
51 | exit 0 |