1#!/bin/sh 2# 3# 4 5# PROVIDE: kdc 6# REQUIRE: NETWORKING 7# BEFORE: SERVERS 8# KEYWORD: shutdown 9 10. /etc/rc.subr 11 12name=kdc 13desc="Kerberos 5 server" 14rcvar=${name}_enable 15 16set_rcvar_obsolete kerberos5_server_enable kdc_enable 17set_rcvar_obsolete kerberos5_server kdc_program 18set_rcvar_obsolete kerberos5_server_flags kdc_flags 19 20 21load_rc_config $name 22if [ "${kdc_program}" = /usr/libexec/kdc -o \ 23 "${kdc_program}" = /usr/local/libexec/kdc ]; then 24 command_args="$command_args --detach" 25fi 26run_rc_command "$1" 27