Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2005 19:39:28 +0200 (CEST)
From:      Andre Albsmeier <Andre.Albsmeier@siemens.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/86606: Unneeded message from /etc/rc.d/localpkg
Message-ID:  <200509261739.j8QHdS2l005985@curry.mchp.siemens.de>
Resent-Message-ID: <200509261740.j8QHeLc2085069@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86606
>Category:       conf
>Synopsis:       Unneeded message from /etc/rc.d/localpkg
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 26 17:40:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:

FreeBSD 5.4-STABLE #0: Fri Sep 23 20:48:51 CEST 2005

>Description:

If local_startup=NO in /etc/rc.conf /etc/rc.d/localpkg emits a
message "Shutting down daemon processes:" during shutdown
although the corresponding code is never called.

>How-To-Repeat:

echo "local_startup=NO" >> /etc/rc.conf; halt

>Fix:

Simple, move the echo statement to appropriate place (for
system startup everything is alright already):

--- /etc/rc.d/localpkg.ORI	Mon Sep 26 19:25:18 2005
+++ /etc/rc.d/localpkg	Mon Sep 26 19:25:54 2005
@@ -53,13 +53,12 @@
 
 pkg_stop()
 {
-	echo -n 'Shutting down daemon processes:'
-
 	# For each dir in $local_startup, search for init scripts matching *.sh
 	case ${local_startup} in
 	[Nn][Oo] | '')
 		;;
 	*)
+		echo -n 'Shutting down daemon processes:'
 		slist=""
 		if [ -z "${script_name_sep}" ]; then
 			script_name_sep=" "

>Release-Note:
>Audit-Trail:
>Unformatted:



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