NetBSD/etc/rc.d/yppasswdd
2000-03-10 11:53:23 +00:00

26 lines
413 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: yppasswdd,v 1.1.1.1 2000/03/10 11:53:23 lukem Exp $
#
# PROVIDE: yppasswdd
# REQUIRE: ypserv ypbind
. /etc/rc.subr
. /etc/rc.conf
name="yppasswdd"
command="/usr/sbin/rpc.${name}"
required_vars="portmap ypserv"
start_precmd="yppasswdd_precmd"
yppasswdd_precmd()
{
if [ -z "$domainname" ]; then
warn "\$domainname is not set; ${name} not started"
return 1
fi
}
run_rc_command "$1"