~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to debian/krb5-admin-server.init

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Required-Start:       $local_fs $remote_fs $network $syslog
5
5
# Required-Stop:        $local_fs $remote_fs $network $syslog
6
6
# Default-Start:        2 3 4 5
7
 
# Default-Stop:         S 0 1 6
 
7
# Default-Stop:         0 1 6
8
8
# Short-Description:    MIT Kerberos KDC administrative daemon
9
9
# Description:          Starts, stops, or restarts the MIT Kerberos KDC
10
10
#                       administrative daemon (kadmind).  This daemon answers
23
23
DESC="Kerberos administrative servers"
24
24
NAME=kadmind
25
25
DAEMON=/usr/sbin/$NAME
 
26
DAEMON_ARGS=""
26
27
SCRIPTNAME=/etc/init.d/krb5-admin-server
 
28
DEFAULT=/etc/default/krb5-admin-server
27
29
 
28
30
# Exit if the package is not installed.
29
31
[ -x "$DAEMON" ] || exit 0
30
32
 
31
33
# Read configuration if it is present.
32
 
[ -r /etc/default/krb5-admin-server ] && . /etc/default/krb5-admin-server
 
34
[ -r "$DEFAULT" ] && . "$DEFAULT"
33
35
 
34
36
# Get the setting of VERBOSE and other rcS variables.
35
37
[ -f /etc/default/rcS ] && . /etc/default/rcS
46
48
    start-stop-daemon --start --quiet --startas $DAEMON --name $NAME --test \
47
49
        > /dev/null || return 1
48
50
    start-stop-daemon --start --quiet --startas $DAEMON --name $NAME \
49
 
        || return 2
 
51
        -- $DAEMON_ARGS || return 2
50
52
}
51
53
 
52
54
# Return
62
64
 
63
65
case "$1" in 
64
66
  start)
 
67
    if [ "$RUN_KADMIND" = false ] ; then
 
68
        if [ "$VERBOSE" != no ] ; then
 
69
            log_action_msg "Not starting $DESC per configuration"
 
70
        fi
 
71
        exit 0
 
72
    fi
65
73
    [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
66
74
    do_start
67
75
    case "$?" in
80
88
    ;;
81
89
 
82
90
  restart|force-reload)
 
91
    if [ "$RUN_KADMIND" = false ] ; then
 
92
        if [ "$VERBOSE" != no ] ; then
 
93
            log_action_msg "Not restarting $DESC per configuration"
 
94
        fi
 
95
        exit 0
 
96
    fi
83
97
    log_daemon_msg "Restarting $DESC" "$NAME"
84
98
    do_stop
85
99
    case "$?" in