~ubuntu-branches/ubuntu/hoary/courier/hoary

« back to all changes in this revision

Viewing changes to debian/courier-authdaemon.init

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-11-29 12:09:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041129120934-kkn0xj11j0n1n6lo
Tags: 0.47-3ubuntu1
* Nathaniel McCallum
 - debian/*.init: pretty initscripts
 - debian/control: version depends on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
sbindir="${exec_prefix}/sbin"
7
7
libexecdir="${prefix}/lib/courier"
8
8
 
 
9
. /lib/lsb/init-functions
 
10
 
9
11
case "$1" in
10
12
start)
11
13
        # Start daemons.
12
 
                cd /
 
14
        cd /
13
15
        if test -x ${libexecdir}/authlib/authdaemond
14
16
        then
15
 
                                echo -n "Starting Courier authdaemon: "
16
 
                ${libexecdir}/authlib/authdaemond start
17
 
                echo "done."
 
17
                log_begin_msg "Starting Courier authdaemon..."
 
18
                ${libexecdir}/authlib/authdaemond start || log_end_msg 1
 
19
                log_end_msg 0
18
20
        fi
19
21
        ;;
20
22
stop)
21
 
                # Stop daemons.
22
 
                cd /
 
23
        # Stop daemons.
 
24
        cd /
23
25
        if test -x ${libexecdir}/authlib/authdaemond
24
26
        then
25
 
                                echo -n "Stopping Courier authdaemon: "
26
 
                ${libexecdir}/authlib/authdaemond stop
27
 
                echo "done."
 
27
                log_begin_msg "Stopping Courier authdaemon..."
 
28
                ${libexecdir}/authlib/authdaemond stop || log_end_msg 1
 
29
                log_end_msg 0
28
30
        fi
29
31
        ;;
30
32
restart | reload | force-reload)
32
34
        $0 start
33
35
        ;;
34
36
*)
35
 
                echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
 
37
                log_success_msg "Usage: $0 {start|stop|restart|reload|force-reload}"
36
38
                exit 1
37
39
                ;;
38
40
esac