svn commit: r306924 - stable/10/etc/rc.d

Jilles Tjoelker jilles at FreeBSD.org
Sun Oct 9 21:28:57 UTC 2016


Author: jilles
Date: Sun Oct  9 21:28:56 2016
New Revision: 306924
URL: https://svnweb.freebsd.org/changeset/base/306924

Log:
  MFC r297314: rc.d: Make msgs a proper rc.d script.
  
  PR:		207149
  Reported by:	Jonathan de Boyne Pollard

Modified:
  stable/10/etc/rc.d/msgs
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/rc.d/msgs
==============================================================================
--- stable/10/etc/rc.d/msgs	Sun Oct  9 21:05:19 2016	(r306923)
+++ stable/10/etc/rc.d/msgs	Sun Oct  9 21:28:56 2016	(r306924)
@@ -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