[Midnightbsd-cvs] src [11693] trunk/etc/rc.d: update msgs
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jul 8 16:32:56 EDT 2018
Revision: 11693
http://svnweb.midnightbsd.org/src/?rev=11693
Author: laffer1
Date: 2018-07-08 16:32:55 -0400 (Sun, 08 Jul 2018)
Log Message:
-----------
update msgs
Modified Paths:
--------------
trunk/etc/rc.d/mountlate
trunk/etc/rc.d/msgs
Modified: trunk/etc/rc.d/mountlate
===================================================================
--- trunk/etc/rc.d/mountlate 2018-07-08 20:30:36 UTC (rev 11692)
+++ trunk/etc/rc.d/mountlate 2018-07-08 20:32:55 UTC (rev 11693)
@@ -1,7 +1,6 @@
#!/bin/sh
#
# $MidnightBSD$
-#
# PROVIDE: mountlate
# REQUIRE: DAEMON
@@ -21,19 +20,10 @@
# Mount "late" filesystems.
#
err=0
- latefs=
- # / (root) fs is always remounted, so remove from list
- latefs="`/sbin/mount -d -a -l | grep -v ' /$'`"
- case ${latefs} in
- '')
- ;;
- *)
- echo -n 'Mounting late file systems:'
- mount -a -l
- err=$?
- echo '.'
- ;;
- esac
+ echo -n 'Mounting late file systems:'
+ mount -a -L
+ err=$?
+ echo '.'
case ${err} in
0)
Modified: trunk/etc/rc.d/msgs
===================================================================
--- trunk/etc/rc.d/msgs 2018-07-08 20:30:36 UTC (rev 11692)
+++ trunk/etc/rc.d/msgs 2018-07-08 20:32:55 UTC (rev 11693)
@@ -1,13 +1,24 @@
#!/bin/sh
#
# $MidnightBSD$
-#
# PROVIDE: msgs
# REQUIRE: LOGIN
-# Make a bounds file for msgs(1) if there isn't one already
-#
-if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then
- echo 0 > /var/msgs/bounds
-fi
+. /etc/rc.subr
+
+name="msgs"
+start_cmd="msgs_start"
+stop_cmd=":"
+
+msgs_start()
+{
+ # Make a bounds file for msgs(1) if there isn't one already
+ #
+ if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then
+ echo 0 > /var/msgs/bounds
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
More information about the Midnightbsd-cvs
mailing list