Module Name: src
Committed By: kefren
Date: Thu Jan 13 10:55:20 UTC 2011
Modified Files:
src/distrib/sets/lists/etc: mi
src/etc/defaults: rc.conf
src/etc/rc.d: Makefile
Added Files:
src/etc/rc.d: ldpd
Log Message:
add ldpd rc script
To generate a diff of this commit:
cvs rdiff -u -r1.217 -r1.218 src/distrib/sets/lists/etc/mi
cvs rdiff -u -r1.109 -r1.110 src/etc/defaults/rc.conf
cvs rdiff -u -r1.80 -r1.81 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.1 src/etc/rc.d/ldpd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/etc/mi
diff -u src/distrib/sets/lists/etc/mi:1.217 src/distrib/sets/lists/etc/mi:1.218
--- src/distrib/sets/lists/etc/mi:1.217 Sun Nov 7 17:48:41 2010
+++ src/distrib/sets/lists/etc/mi Thu Jan 13 10:55:19 2011
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.217 2010/11/07 17:48:41 jmmv Exp $
+# $NetBSD: mi,v 1.218 2011/01/13 10:55:19 kefren Exp $
#
# Note: end-user configuration files that are moved to another location
# should not be marked "obsolete"; they should just be removed from
@@ -213,6 +213,7 @@
./etc/rc.d/kdc etc-krb5-rc
./etc/rc.d/kerberos etc-obsolete obsolete
./etc/rc.d/ldconfig etc-sys-rc
+./etc/rc.d/ldpd etc-router-rc
./etc/rc.d/lkm1 etc-obsolete obsolete
./etc/rc.d/lkm2 etc-obsolete obsolete
./etc/rc.d/lkm3 etc-obsolete obsolete
Index: src/etc/defaults/rc.conf
diff -u src/etc/defaults/rc.conf:1.109 src/etc/defaults/rc.conf:1.110
--- src/etc/defaults/rc.conf:1.109 Thu Oct 1 16:36:20 2009
+++ src/etc/defaults/rc.conf Thu Jan 13 10:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: rc.conf,v 1.109 2009/10/01 16:36:20 tsarna Exp $
+# $NetBSD: rc.conf,v 1.110 2011/01/13 10:55:20 kefren Exp $
#
# /etc/defaults/rc.conf --
# default configuration of /etc/rc.conf
@@ -253,6 +253,7 @@
mrouted=NO mrouted_flags=""
route6d=NO route6d_flags=""
rtsold=NO rtsold_flags="-a" # for ip6mode=autohost only
+ldpd=NO
# Daemons used to boot other hosts over a network.
#
Index: src/etc/rc.d/Makefile
diff -u src/etc/rc.d/Makefile:1.80 src/etc/rc.d/Makefile:1.81
--- src/etc/rc.d/Makefile:1.80 Tue Sep 29 23:56:27 2009
+++ src/etc/rc.d/Makefile Thu Jan 13 10:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.80 2009/09/29 23:56:27 tsarna Exp $
+# $NetBSD: Makefile,v 1.81 2011/01/13 10:55:20 kefren Exp $
.include <bsd.own.mk>
@@ -25,7 +25,7 @@
identd ifwatchd inetd ipfilter ipfs ipmon ipnat ipsec \
irdaattach iscsi_target isdnd \
kdc \
- ldconfig local lpd lvm \
+ ldconfig ldpd local lpd lvm \
mdnsd mixerctl mopd motd mountall mountcritlocal \
mountcritremote mountd moused mrouted \
named ndbootd network newsyslog nfsd nfslocking ntpd ntpdate \
Added files:
Index: src/etc/rc.d/ldpd
diff -u /dev/null src/etc/rc.d/ldpd:1.1
--- /dev/null Thu Jan 13 10:55:20 2011
+++ src/etc/rc.d/ldpd Thu Jan 13 10:55:20 2011
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: ldpd,v 1.1 2011/01/13 10:55:20 kefren Exp $
+#
+
+# PROVIDE: ldpd
+# REQUIRE: network
+# BEFORE: NETWORKING
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="ldpd"
+rcvar=$name
+command="/usr/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"