[Pkg-sysvinit-devel] Bug#637390: update-rc.d -n fail when run by a regular user, with partialy false message

Regid Ichira regid23 at yahoo.com
Wed Aug 10 20:11:49 UTC 2011


Package: sysv-rc
Version: 2.88dsf-13.11
Severity: normal
Tags: patch
File: /usr/sbin/update-rc.d

  While trying 
        /usr/sbin/update-rc.d -n
as non root:

    $ /usr/sbin/update-rc.d -n lvm2 start 26 S .
    update-rc.d: using dependency based boot sequencing
    Can't exec "insserv": No such file or directory at /usr/sbin 
                /update-rc.d line 417.
    update-rc.d: error: insserv rejected the script header

I suggest:

--- /usr/sbin/update-rc.d       2011-07-13 22:41:44.000000000 +0300
+++ update-rc.d 2011-08-10 22:52:34.000000000 +0300
@@ -414,7 +414,7 @@
         cmp_args_with_defaults($scriptname, $action, @args);

         if ( -f "/etc/init.d/$scriptname" ) {
-            my $rc = system("insserv", @opts, $scriptname) >> 8;
+            my $rc = system("/sbin/insserv", @opts, $scriptname) >> 8;
             if (0 == $rc && !$notreally) {
                 save_last_action($scriptname, @orig_argv);
             }






More information about the Pkg-sysvinit-devel mailing list