[Initscripts-ng-commits] r922 - in /trunk/src/insserv/debian: changelog update-rc.d-insserv
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Mon Jul 20 15:56:05 UTC 2009
Author: kelmo-guest
Date: Mon Jul 20 15:56:04 2009
New Revision: 922
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=922
Log:
Before inserting an initscript with insserv, check that
/etc/init.d/<basename> exists in update-rc.d-insserv.
Modified:
trunk/src/insserv/debian/changelog
trunk/src/insserv/debian/update-rc.d-insserv
Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=922&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Mon Jul 20 15:56:04 2009
@@ -1,8 +1,13 @@
insserv (1.12.0-8) UNRELEASED; urgency=low
+ [ Petter Reinholdtsen ]
* Refresh 92_m68k_alignment.patch.
- -- Petter Reinholdtsen <pere at debian.org> Wed, 01 Jul 2009 15:45:16 +0200
+ [ Kel Modderman ]
+ * Before inserting an initscript with insserv, check that
+ /etc/init.d/<basename> exists in update-rc.d-insserv.
+
+ -- Kel Modderman <kel at otaku42.de> Tue, 21 Jul 2009 01:55:06 +1000
insserv (1.12.0-7) unstable; urgency=low
Modified: trunk/src/insserv/debian/update-rc.d-insserv
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/update-rc.d-insserv?rev=922&op=diff
==============================================================================
--- trunk/src/insserv/debian/update-rc.d-insserv (original)
+++ trunk/src/insserv/debian/update-rc.d-insserv Mon Jul 20 15:56:04 2009
@@ -36,7 +36,11 @@
if ($#ARGV >= 0) {
info("\`$action @ARGV' overridden by LSB info of $scriptname");
}
- exec "insserv", @opts, $scriptname;
+ if ( -f "/etc/init.d/$scriptname" ) {
+ exec "insserv", @opts, $scriptname;
+ } else {
+ error("initscript does not exist: /etc/init.d/$scriptname");
+ }
} elsif ("disable" eq $action || "enable" eq $action) {
toggle($action, $scriptname, @ARGV);
# Call insserv to resequence modified links
More information about the Initscripts-ng-commits
mailing list