Subject: /etc/rc.d/ypset
To: None <tech-userlevel@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-userlevel
Date: 01/15/2003 11:08:32
Hi!

I just noticed that we don't have any nice startup script for ypset.
Any objections if I commit this (and submit a pullup request)?

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/



Index: mi
===================================================================
RCS file: /cvsroot/src/distrib/sets/lists/etc/mi,v
retrieving revision 1.111
diff -u -r1.111 mi
--- mi	2003/01/10 03:17:52	1.111
+++ mi	2003/01/15 09:04:01
@@ -163,6 +163,7 @@
 ./etc/rc.d/ypbind			etc-nis-rc
 ./etc/rc.d/yppasswdd			etc-nis-rc
 ./etc/rc.d/ypserv			etc-nis-rc
+./etc/rc.d/ypset			etc-nis-rc
 ./etc/rc.lkm				etc-sys-rc
 ./etc/rc.local				etc-sys-rc
 ./etc/rc.shutdown			etc-sys-rc
Index: Makefile
===================================================================
RCS file: /cvsroot/src/etc/rc.d/Makefile,v
retrieving revision 1.37
diff -u -r1.37 Makefile
--- Makefile	2003/01/10 05:07:45	1.37
+++ Makefile	2003/01/15 09:04:11
@@ -22,7 +22,7 @@
 	savecore screenblank sendmail securelevel sshd \
 	staticroute swap1 swap2 sysdb sysctl syslogd \
 	timed tpctl ttys virecover wdogctl wscons wsmoused xdm xfs \
-	ypbind yppasswdd ypserv
+	ypbind yppasswdd ypserv ypset
 FILESDIR=	/etc/rc.d
 FILESMODE=	${BINMODE}




#!/bin/sh
#
# $NetBSD$
#

# PROVIDE: ypset
# REQUIRE: ypbind

. /etc/rc.subr

name="ypset"
rcvar=$name
command="/usr/sbin/${name}"

load_rc_config $name
run_rc_command "$1"