9c5433cb22
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
29 lines
492 B
Bash
29 lines
492 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: ypupdated
|
|
# REQUIRE: rpcbind ypserv
|
|
# KEYWORD: FreeBSD
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ypupdated"
|
|
rcvar="rpc_ypupdated_enable"
|
|
command="/usr/sbin/rpc.${name}"
|
|
required_vars="portmap_enable nis_server_enable"
|
|
start_precmd="rpc_ypupdated_precmd"
|
|
|
|
rpc_ypupdated_precmd()
|
|
{
|
|
_domain=`domainname`
|
|
if [ -z "$_domain" ]; then
|
|
warn "domainname(1) is not set."
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|