Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Oct 2016 21:28:56 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r306924 - stable/10/etc/rc.d
Message-ID:  <201610092128.u99LSuJj021307@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610092128.u99LSuJj021307>