blob: 916be5f4d6ad675ac1169f82e42929a03e35e67b (
plain)
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
52
53
54
55
56
57
58
59
60
61
|
#! /bin/sh
#
# description: Authlib - Courier authentication library.
#
# If you want the courier-authlib daemon run at startup make
# the rc script executable, for example:
# chmod +x /etc/rc.d/rc.courier-authlib
# and add something like this to your /etc/rc.d/rc.local file
#
# # Start the courier-authlib daemon.
# if [ -x /etc/rc.d/rc.courier-authlib ]; then
# . /etc/rc.d/rc.courier-authlib start
# fi
#
# grabbed from http://www.tuxjm.net/downloads/source/testing/courier-authlib/courier-authlib-init
#
prefix="/usr"
exec_prefix="/usr"
sysconfdir="/etc/"
sbindir="/usr/sbin"
if test ! -f /etc/authlib/authdaemonrc
then
echo "/etc/authlib/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
|