From owner-svn-src-all@FreeBSD.ORG Tue Sep 29 18:44:35 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 339C5106568B; Tue, 29 Sep 2009 18:44:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 08A2F8FC20; Tue, 29 Sep 2009 18:44:35 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8TIiYuk092938; Tue, 29 Sep 2009 18:44:34 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8TIiYDJ092934; Tue, 29 Sep 2009 18:44:34 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <200909291844.n8TIiYDJ092934@svn.freebsd.org> From: Doug Barton Date: Tue, 29 Sep 2009 18:44:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197620 - in stable/8: etc etc/defaults share/man/man5 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 18:44:35 -0000 Author: dougb Date: Tue Sep 29 18:44:34 2009 New Revision: 197620 URL: http://svn.freebsd.org/changeset/base/197620 Log: MFC r197297 Add a knob to show 'Starting foo:' messages when faststart is used, such as at boot time. MFC 197619 By popular acclaim, enable "Starting foo:" messages by default Approved by: re (bz) Modified: stable/8/etc/ (props changed) stable/8/etc/defaults/rc.conf stable/8/etc/rc.subr stable/8/share/man/man5/ (props changed) stable/8/share/man/man5/rc.conf.5 Modified: stable/8/etc/defaults/rc.conf ============================================================================== --- stable/8/etc/defaults/rc.conf Tue Sep 29 16:49:10 2009 (r197619) +++ stable/8/etc/defaults/rc.conf Tue Sep 29 18:44:34 2009 (r197620) @@ -23,6 +23,7 @@ rc_debug="NO" # Set to YES to enable debugging output from rc.d rc_info="NO" # Enables display of informational messages at boot. +rc_startmsgs="YES" # Show "Starting foo:" messages at boot rcshutdown_timeout="30" # Seconds to wait before terminating rc.shutdown early_late_divider="FILESYSTEMS" # Script that separates early/late # stages of the boot process. Make sure you know Modified: stable/8/etc/rc.subr ============================================================================== --- stable/8/etc/rc.subr Tue Sep 29 16:49:10 2009 (r197619) +++ stable/8/etc/rc.subr Tue Sep 29 18:44:34 2009 (r197620) @@ -680,7 +680,13 @@ run_rc_command() # setup the full command to run # - [ -z "${rc_quiet}" ] && echo "Starting ${name}." + _show_startmsgs=1 + if [ -n "${rc_quiet}" ]; then + if ! checkyesno rc_startmsgs; then + unset _show_startmsgs + fi + fi + [ -n "$_show_startmsgs" ] && echo "Starting ${name}." if [ -n "$_chroot" ]; then _doit="\ ${_nice:+nice -n $_nice }\ Modified: stable/8/share/man/man5/rc.conf.5 ============================================================================== --- stable/8/share/man/man5/rc.conf.5 Tue Sep 29 16:49:10 2009 (r197619) +++ stable/8/share/man/man5/rc.conf.5 Tue Sep 29 18:44:34 2009 (r197620) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 10, 2009 +.Dd September 17, 2009 .Dt RC.CONF 5 .Os .Sh NAME @@ -95,6 +95,13 @@ disable informational messages from the Informational messages are displayed when a condition that is not serious enough to warrant a warning or an error occurs. +.It Va rc_startmsgs +.Pq Vt bool +If set to +.Dq Li YES , +show +.Dq Starting foo: +when faststart is used (e.g., at boot time). .It Va early_late_divider .Pq Vt str The name of the script that should be used as the