[Midnightbsd-cvs] src [11764] trunk/etc/rc.d: update

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jul 11 10:24:01 EDT 2018


Revision: 11764
          http://svnweb.midnightbsd.org/src/?rev=11764
Author:   laffer1
Date:     2018-07-11 10:24:01 -0400 (Wed, 11 Jul 2018)
Log Message:
-----------
update

Modified Paths:
--------------
    trunk/etc/rc.d/bridge
    trunk/etc/rc.d/bsnmpd
    trunk/etc/rc.d/cleanvar
    trunk/etc/rc.d/devd

Added Paths:
-----------
    trunk/etc/rc.d/automount
    trunk/etc/rc.d/autounmountd
    trunk/etc/rc.d/ctld

Added: trunk/etc/rc.d/automount
===================================================================
--- trunk/etc/rc.d/automount	                        (rev 0)
+++ trunk/etc/rc.d/automount	2018-07-11 14:24:01 UTC (rev 11764)
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+#
+
+# PROVIDE: automount
+# REQUIRE: nfsclient automountd
+# KEYWORD: nojail shutdown
+
+. /etc/rc.subr
+
+name="automount"
+rcvar="autofs_enable"
+start_cmd="automount_start"
+stop_cmd="automount_stop"
+required_modules="autofs"
+
+automount_start()
+{
+
+	/usr/sbin/automount ${automount_flags}
+}
+
+automount_stop()
+{
+
+	/sbin/umount -At autofs
+}
+
+load_rc_config $name
+run_rc_command "$1"


Property changes on: trunk/etc/rc.d/automount
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/etc/rc.d/autounmountd
===================================================================
--- trunk/etc/rc.d/autounmountd	                        (rev 0)
+++ trunk/etc/rc.d/autounmountd	2018-07-11 14:24:01 UTC (rev 11764)
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+#
+
+# PROVIDE: autounmountd
+# REQUIRE: DAEMON
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="autounmountd"
+rcvar="autofs_enable"
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"


Property changes on: trunk/etc/rc.d/autounmountd
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/etc/rc.d/bridge
===================================================================
--- trunk/etc/rc.d/bridge	2018-07-11 14:15:05 UTC (rev 11763)
+++ trunk/etc/rc.d/bridge	2018-07-11 14:24:01 UTC (rev 11764)
@@ -37,7 +37,7 @@
 stop_cmd="bridge_stop"
 cmd=""
 
-glob_int () {
+glob_int() {
 	case "$1" in
 		$2 ) true ;;
 		* ) false ;;
@@ -44,7 +44,7 @@
 	esac
 }
 
-bridge_test () {
+bridge_test() {
 	bridge=$1
 	iface=$2
 

Modified: trunk/etc/rc.d/bsnmpd
===================================================================
--- trunk/etc/rc.d/bsnmpd	2018-07-11 14:15:05 UTC (rev 11763)
+++ trunk/etc/rc.d/bsnmpd	2018-07-11 14:24:01 UTC (rev 11764)
@@ -12,7 +12,8 @@
 name="bsnmpd"
 rcvar="bsnmpd_enable"
 command="/usr/sbin/${name}"
-pidfile="/var/run/snmpd.pid"
 
 load_rc_config $name
+pidfile="${bsnmpd_pidfile:-/var/run/snmpd.pid}"
+command_args="-p ${pidfile}"
 run_rc_command "$1"

Modified: trunk/etc/rc.d/cleanvar
===================================================================
--- trunk/etc/rc.d/cleanvar	2018-07-11 14:15:05 UTC (rev 11763)
+++ trunk/etc/rc.d/cleanvar	2018-07-11 14:24:01 UTC (rev 11764)
@@ -54,12 +54,10 @@
 	rm -f /var/run/clean_var /var/spool/lock/clean_var
 }
 
-cleanvar_start ()
+cleanvar_start()
 {
 	if [ -d /var/run -a ! -f /var/run/clean_var ]; then
 		purgedir /var/run
-		# And an initial utmpx active session file
-		(cd /var/run && cp /dev/null utx.active && chmod 644 utx.active)
 		>/var/run/clean_var
 	fi
 	if [ -d /var/spool/lock -a ! -f /var/spool/lock/clean_var ]; then

Added: trunk/etc/rc.d/ctld
===================================================================
--- trunk/etc/rc.d/ctld	                        (rev 0)
+++ trunk/etc/rc.d/ctld	2018-07-11 14:24:01 UTC (rev 11764)
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $MidnightBSD$
+#
+
+# PROVIDE: ctld
+# REQUIRE: FILESYSTEMS
+# BEFORE:  DAEMON
+# KEYWORD: nojail
+
+. /etc/rc.subr
+
+name="ctld"
+rcvar="ctld_enable"
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/${name}"
+required_files="/etc/ctl.conf"
+required_modules="ctl"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"


Property changes on: trunk/etc/rc.d/ctld
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/etc/rc.d/devd
===================================================================
--- trunk/etc/rc.d/devd	2018-07-11 14:15:05 UTC (rev 11763)
+++ trunk/etc/rc.d/devd	2018-07-11 14:24:01 UTC (rev 11764)
@@ -26,13 +26,14 @@
 	fi
 }
 
-devd_prestart ()
+devd_prestart()
 {
 	find_pidfile
 
-	# If devd is disabled, turn it off in the kernel to avoid memory leaks.
+	# If devd is disabled, turn it off in the kernel to avoid unnecessary
+	# memory usage.
 	if ! checkyesno ${rcvar}; then
-	    $SYSCTL hw.bus.devctl_disable=1
+	    $SYSCTL hw.bus.devctl_queue=0
 	fi
 }
 



More information about the Midnightbsd-cvs mailing list