[Pkg-sysvinit-commits] r625 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood-guest at costa.debian.org
Thu Jan 12 11:08:23 UTC 2006


Author: jdthood-guest
Date: 2006-01-12 11:08:23 +0000 (Thu, 12 Jan 2006)
New Revision: 625

Modified:
   sysvinit/trunk/debian/initscripts/etc/init.d/bootlogd
Log:
Fix return status handling bug in bootlogd

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/bootlogd
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/bootlogd	2006-01-12 11:07:57 UTC (rev 624)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/bootlogd	2006-01-12 11:08:23 UTC (rev 625)
@@ -62,17 +62,18 @@
 	PATH=/sbin:/bin:/usr/sbin:/usr/bin
 	log_daemon_msg "Stopping $DESC" "$NAME"
 	start-stop-daemon --stop --quiet --exec $DAEMON
+	ES=$?
 	sleep 1
-	log_end_msg $?
+	log_end_msg $ES
 	if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
 	then
 		log_action_begin_msg "Moving boot log file"
 		# bootlogd writes to boot, making backup at boot~
 		cd /var/log && {
 			chgrp adm boot || :
-			savelog -q -p -c 5 boot &&
-			mv boot.0 boot &&
-			mv boot~ boot.0
+			savelog -q -p -c 5 boot \
+			&& mv boot.0 boot \
+			&& mv boot~ boot.0
 		}
 		log_action_end_msg $?
 	fi




More information about the Pkg-sysvinit-commits mailing list