1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/etc/rc.d/keyserv
Gordon Tetlow 88f7d3e22b Clean up the scripts to use the new variables:
xntpd_* -> ntpd_*
portmap_* -> rpcbind_*

Also change single_mountd_enable -> mountd_enable
Changing the mountd flags brings us closer to NetBSD.

All of the old variable names are shimmed so you can continue to use the
old variable name.

Finally make /etc/rc.d/mountd no longer dependent on nfs as there are
(apparently) other consumers of mountd.

Submitted by:	Mike Makonnen <makonnen@pacbell.net>
2002-08-14 05:44:32 +00:00

34 lines
469 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# Start keyserv if we are running Secure RPC
#
# PROVIDE: keyserv
# REQUIRE: ypbind
# BEFORE: DAEMON
# KEYWORD: FreeBSD
. /etc/rc.subr
name="keyserv"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
start_precmd="keyserv_prestart"
keyserv_prestart()
{
if ! checkyesno rpcbind_enable && \
! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
then
force_depend rpcbind || return 1
fi
return 0
}
load_rc_config $name
run_rc_command "$1"