conf/86606: Unneeded message from /etc/rc.d/localpkg

Andre Albsmeier Andre.Albsmeier at siemens.com
Mon Sep 26 10:40:23 PDT 2005


>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:


More information about the freebsd-bugs mailing list