NetBSD/etc/rc.d/yppasswdd

26 lines
413 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/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"