[Pkg-sysvinit-devel] Bug#584086: update-rc.d service lsb-defaults
Jordi Pujol
jordipujolp at gmail.com
Thu Jan 27 10:09:17 UTC 2011
Hello,
also thinking that those warning messages are confusing,
because the package behaviour is allways use as defaults the LSB headers.
attached are two little patches to do so,
patch for the update-rc.d program,
********
--- sysvinit-2.88dsf/debian/src/sysv-rc/sbin/update-rc.d 2010-12-30
14:01:01.000000000 +0100
+++ sysvinit-2.88dsf/debian/src/sysv-rc/sbin/update-rc.d 2011-01-13
16:29:52.373598653 +0100
@@ -411,7 +411,8 @@ sub insserv_updatercd {
# All start/stop/defaults arguments are discarded so emit a
# message if arguments have been given and are in conflict
# with Default-Start/Default-Stop values of LSB comment.
- cmp_args_with_defaults($scriptname, $action, @args);
+ cmp_args_with_defaults($scriptname, $action, @args)
+ if ("defaults" ne $action);
if ( -f "/etc/init.d/$scriptname" ) {
my $rc = system("insserv", @opts, $scriptname) >> 8;
********
patch for the man page,
********
--- sysvinit-2.88dsf/debian/src/sysv-rc/man8/update-rc.d.8 2010-12-30
14:01:01.000000000 +0100
+++ sysvinit-2.88dsf/debian/src/sysv-rc/man8/update-rc.d.8 2010-12-30
14:05:42.000000000 +0100
@@ -120,10 +120,15 @@ If
.B defaults
is used then
.B update\-rc.d
-will make links to start the service in runlevels
-.B 2345
-and to stop the service in runlevels
-.BR 016 .
+will make links to start and to stop the service in runlevels specified in the
+.BR LSB
+headers.
+In legacy mode
+.B update\-rc.d
+will make links to start the service in runlevels
+.B 2345
+and to stop the service in runlevels
+.BR 016 .
By default all the links will have sequence number 20, but
this should be overridden if there are dependencies. For example if
daemon B depends on A, then A must be started before B and B must be
********
Regards,
Jordi Pujol
Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-rc.d.8-defaults.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110127/29124bff/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update-rc.d-defaults.patch
Type: text/x-patch
Size: 716 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20110127/29124bff/attachment-0001.bin>
More information about the Pkg-sysvinit-devel
mailing list