[Pkg-sysvinit-commits] r796 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Petter Reinholdtsen pere at costa.debian.org
Fri Jul 14 11:32:14 UTC 2006


Author: pere
Date: 2006-07-14 11:32:13 +0000 (Fri, 14 Jul 2006)
New Revision: 796

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh
Log:
  * Make sure hostname.sh return error code if it is unable to set the
    hostname.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-07-14 11:23:33 UTC (rev 795)
+++ sysvinit/trunk/debian/changelog	2006-07-14 11:32:13 UTC (rev 796)
@@ -5,6 +5,8 @@
     with 'stop' argument for runlevel 0 and 6, and make it depend on
     '$all' to put it last in the startup sequence.
   * Update the descripton in LSB header for init.d/hostname.sh.
+  * Make sure hostname.sh return error code if it is unable to set the
+    hostname.
   * Fix 'startpar' concurrency option to only run start and stop
     scripts once.  Patch from Sören Köpping. (Closes: #378092)
   * Update init.d/rc to move the definition of the startup() function

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh	2006-07-14 11:23:33 UTC (rev 795)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh	2006-07-14 11:32:13 UTC (rev 796)
@@ -31,6 +31,7 @@
 	hostname "$HOSTNAME"
 	ES=$?
 	[ "$VERBOSE" != no ] && log_action_end_msg $ES
+	exit $ES
 }
 
 case "$1" in




More information about the Pkg-sysvinit-commits mailing list