3 # heimdal Heimdal Kerberos V credential cache daemon
4 # chkconfig: 2345 11 89
5 # description: Heimdal Kerberos V credential cache daemon
7 # config: /etc/kcm.conf
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 . /etc/sysconfig/network
17 [ -f /etc/sysconfig/kcm ] && . /etc/sysconfig/kcm
19 # Check that networking is up.
20 if is_yes "${NETWORKING}"; then
21 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
22 msg_network_down "Kerberos KCM"
32 if [ ! -f /var/lock/subsys/kcm ]; then
33 msg_starting "Kerberos KCM"
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/kcm
39 msg_already_running "Kerberos KCM"
44 if [ -f /var/lock/subsys/kcm ]; then
45 msg_stopping "Kerberos KCM"
47 rm -f /var/lock/subsys/kcm >/dev/null 2>&1
49 msg_not_running "Kerberos KCM"
54 if [ -f /var/lock/subsys/kcm ]; then
58 msg_not_running "Kerberos KCM"
64 # See how we were called.
87 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"