freebsd-nq/etc/rc.d/kadmind
Gordon Tetlow 27bc1b287e Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:	Mike Makonnen <makonnen@pacbell.net>
Reviewed by:	silence on -current and -hackers
Prodded by:	rwatson
2002-06-13 22:14:37 +00:00

33 lines
619 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: kadmin
# REQUIRE: kerberos
# BEFORE: DAEMON
# KEYWORD: FreeBSD
. /etc/rc.subr
name="kadmindIV"
# XXX - The rc.conf files must be sourced early so that several
# variables can be set properly.
#
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"
rcvar="kadmind5_server_enable"
start_cmd="${kadmind5_server} &"
required_vars="kerberos5_server_enable"
run_rc_command "$1"