Source-Changes-HG archive

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

[src/trunk]: src/etc add scripts for npfd



details:   https://anonhg.NetBSD.org/src/rev/ab459d8064eb
branches:  trunk
changeset: 820274:ab459d8064eb
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 05 14:39:09 2017 +0000

description:
add scripts for npfd

diffstat:

 etc/defaults/rc.conf |   3 ++-
 etc/rc.d/Makefile    |   4 ++--
 etc/rc.d/npfd        |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r fec41bac4526 -r ab459d8064eb etc/defaults/rc.conf
--- a/etc/defaults/rc.conf      Thu Jan 05 13:45:50 2017 +0000
+++ b/etc/defaults/rc.conf      Thu Jan 05 14:39:09 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: rc.conf,v 1.137 2016/08/20 11:21:50 christos Exp $
+#      $NetBSD: rc.conf,v 1.138 2017/01/05 14:39:09 christos Exp $
 #
 # /etc/defaults/rc.conf --
 #      default configuration of /etc/rc.conf
@@ -171,6 +171,7 @@
 
 mdnsd=NO
 npf=NO
+npfd=NO
 ipfilter=NO            ipfilter_flags=""       # uses /etc/ipf.conf
 ipnat=NO                                       # uses /etc/ipnat.conf
 ipfs=NO                        ipfs_flags=""           # save/load ipnat and ipf states
diff -r fec41bac4526 -r ab459d8064eb etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Thu Jan 05 13:45:50 2017 +0000
+++ b/etc/rc.d/Makefile Thu Jan 05 14:39:09 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2015/12/13 02:05:15 christos Exp $
+# $NetBSD: Makefile,v 1.95 2017/01/05 14:39:09 christos Exp $
 
 .include <bsd.own.mk>
 
@@ -28,7 +28,7 @@
                ldconfig ldpd local lpd lvm \
                makemandb mdnsd mixerctl modules mopd motd mountall \
                mountcritlocal mountcritremote mountd moused mrouted \
-               named ndbootd network newsyslog nfsd nfslocking npf ntpd \
+               named ndbootd network newsyslog nfsd nfslocking npf npfd ntpd \
                ntpdate \
                perusertmp pf pf_boot pflogd postfix powerd ppp pwcheck \
                quota \
diff -r fec41bac4526 -r ab459d8064eb etc/rc.d/npfd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/npfd     Thu Jan 05 14:39:09 2017 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: npfd,v 1.1 2017/01/05 14:39:09 christos Exp $
+#
+
+# PROVIDE: npfd
+# REQUIRE: npf
+# BEFORE:  SERVERS
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="npfd"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index