Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src add ldpd rc script



details:   https://anonhg.NetBSD.org/src/rev/8d905011e473
branches:  trunk
changeset: 760806:8d905011e473
user:      kefren <kefren%NetBSD.org@localhost>
date:      Thu Jan 13 10:55:19 2011 +0000

description:
add ldpd rc script

diffstat:

 distrib/sets/lists/etc/mi |   3 ++-
 etc/defaults/rc.conf      |   3 ++-
 etc/rc.d/Makefile         |   4 ++--
 etc/rc.d/ldpd             |  17 +++++++++++++++++
 4 files changed, 23 insertions(+), 4 deletions(-)

diffs (73 lines):

diff -r f573a74ad47b -r 8d905011e473 distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Thu Jan 13 10:42:54 2011 +0000
+++ b/distrib/sets/lists/etc/mi Thu Jan 13 10:55:19 2011 +0000
@@ -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
diff -r f573a74ad47b -r 8d905011e473 etc/defaults/rc.conf
--- a/etc/defaults/rc.conf      Thu Jan 13 10:42:54 2011 +0000
+++ b/etc/defaults/rc.conf      Thu Jan 13 10:55:19 2011 +0000
@@ -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.
 #
diff -r f573a74ad47b -r 8d905011e473 etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Thu Jan 13 10:42:54 2011 +0000
+++ b/etc/rc.d/Makefile Thu Jan 13 10:55:19 2011 +0000
@@ -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 \
diff -r f573a74ad47b -r 8d905011e473 etc/rc.d/ldpd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/ldpd     Thu Jan 13 10:55:19 2011 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index