1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/etc/rc.d/ypupdated
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

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"