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

« back to all changes in this revision

Viewing changes to debian/sqwebmail.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:
24
24
        exit 0
25
25
fi
26
26
 
 
27
. /lib/lsb/init-functions
 
28
 
27
29
case "$1" in
28
30
start)
29
31
        # Start webmail daemon
30
 
        echo -n "Starting Courier webmail daemon: "
31
 
        $DAEMON start
32
 
    echo "done."
 
32
        log_begin_msg "Starting Courier webmail daemon..."
 
33
        $DAEMON start || log_end_msg 1
 
34
        log_end_msg 0
33
35
        ;;
34
36
stop)
35
37
        # Stop webmail daemon
36
 
        echo -n "Stopping Courier webmail daemon: "
37
 
        $DAEMON stop
38
 
        echo "done."
 
38
        log_begin_msg "Stopping Courier webmail daemon..."
 
39
        $DAEMON stop || log_end_msg 1
 
40
        log_end_msg 0
39
41
        ;;
40
42
restart | reload | force-reload)
41
43
    $0 stop
42
44
    $0 start
43
45
    ;;
44
46
*)
45
 
        echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
 
47
        log_success_msg "Usage: $0 {start|stop|restart|reload|force-reload}"
46
48
        exit 1
47
49
        ;;
48
50
esac