pkgsrc-wip/ypserv/files/yppasswdd.sh
Jeremy C. Reed 19d5527a03 Install two rc.d scripts.
These were based on NetBSD versions: ypserv,v 1.4.2.1 and yppasswdd,v 1.6.
This needs to be tested more.
2004-01-27 23:38:01 +00:00

28 lines
471 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: yppasswdd.sh,v 1.1 2004/01/27 23:38:15 jeremy-c-reed Exp $
#
# PROVIDE: yppasswdd
# REQUIRE: ypserv ypbind
# BEFORE: LOGIN
. /etc/rc.subr
name="yppasswdd"
rcvar=$name
command="@PREFIX@/sbin/rpc.${name}"
required_vars="rpcbind ypserv"
start_precmd="yppasswdd_precmd"
yppasswdd_precmd()
{
_domain=`domainname`
if [ -z "$_domain" ]; then
warn "domainname(1) is not set."
return 1
fi
}
load_rc_config $name
run_rc_command "$1"