freebsd-nq/etc/rc.d/kadmind
Doug Barton 01ccaceffd Another update from Mike Makonnen.
Missed by: Me
2002-07-07 08:00:31 +00:00

31 lines
568 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: kadmin
# REQUIRE: kerberos
# BEFORE: DAEMON
# KEYWORD: FreeBSD
. /etc/rc.subr
name="kadmindIV"
load_rc_config $name
rcvar=`set_rcvar kadmind4_server`
checkyesno kerberos_stash && stash='-n' || stash=
start_cmd="( sleep 20; ${kadmind4_server} ${stash} > /dev/null 2>&1 & ) &"
required_vars="kerberos4_server_enable"
run_rc_command "$1"
name="kadmind5"
load_rc_config $name
rcvar="kadmind5_server_enable"
unset start_cmd
command="${kadmind5_server}"
command_args="&"
required_vars="kerberos5_server_enable"
run_rc_command "$1"