From afad76ee76d3a58cf84a1bc6fb12c55552bc5563 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 16 Jun 2001 07:16:14 +0000 Subject: Import the NetBSD 1.5 RC system. Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names. --- etc/rc.d/yppasswdd | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 etc/rc.d/yppasswdd (limited to 'etc/rc.d/yppasswdd') diff --git a/etc/rc.d/yppasswdd b/etc/rc.d/yppasswdd new file mode 100755 index 0000000..4b3ab70 --- /dev/null +++ b/etc/rc.d/yppasswdd @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $NetBSD: yppasswdd,v 1.4 2000/06/02 22:54:13 fvdl Exp $ +# + +# PROVIDE: yppasswdd +# REQUIRE: ypserv ypbind + +. /etc/rc.subr + +name="yppasswdd" +rcvar=$name +command="/usr/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" -- cgit v1.1