svn commit: r297314 - head/etc/rc.d
Jilles Tjoelker
jilles at FreeBSD.org
Sun Mar 27 16:27:50 UTC 2016
Author: jilles
Date: Sun Mar 27 16:27:49 2016
New Revision: 297314
URL: https://svnweb.freebsd.org/changeset/base/297314
Log:
rc.d: Make msgs a proper rc.d script.
PR: 207149
Reported by: Jonathan de Boyne Pollard
Modified:
head/etc/rc.d/msgs
Modified: head/etc/rc.d/msgs
==============================================================================
--- head/etc/rc.d/msgs Sun Mar 27 10:09:10 2016 (r297313)
+++ head/etc/rc.d/msgs Sun Mar 27 16:27:49 2016 (r297314)
@@ -6,8 +6,20 @@
# 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 svn-src-all
mailing list