<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans Mono'; font-size:9pt; font-weight:400; font-style:normal;">On Tuesday 21 April 2009 02:11:24 Michael Biebl wrote:<br>
&gt; Kel Modderman wrote:<br>
&gt; &gt; On Saturday 18 April 2009 03:46:04 Henrique de Moraes Holschuh wrote:<br>
&gt; &gt;&gt; On Fri, 17 Apr 2009, Michael Biebl wrote:<br>
&gt; &gt;&gt;&gt; Henrique de Moraes Holschuh wrote:<br>
&gt; &gt;&gt;&gt;&gt; On Fri, 17 Apr 2009, Michael Biebl wrote:<br>
&gt; &gt;&gt;&gt;&gt;&gt; I think, one missing piece is a proper interface for updating init<br>
&gt; &gt;&gt;&gt;&gt;&gt; script priorities (if the depencies or the list of runlevel changes) in<br>
&gt; &gt;&gt;&gt;&gt;&gt; a policy compliant way.<br>
&gt; &gt;&gt;&gt;&gt; There is no such interface in this case (if we had one, insserv would have<br>
&gt; &gt;&gt;&gt;&gt; to make it a no-op).  You have to edit the initscript metadata directly<br>
&gt; &gt;&gt;&gt;&gt; (because it is embedded in comment headers on the initscript itself) to do<br>
&gt; &gt;&gt;&gt;&gt; such changes, then tell the system to rebuild the initscript dependency<br>
&gt; &gt;&gt;&gt;&gt; tree.<br>
&gt; &gt;&gt;&gt; How do you do that exactly while preserving local modifications?<br>
&gt; &gt;&gt; The local modifications have to be done on the initscript headers, which are<br>
&gt; &gt;&gt; conffiles since the dawn of time.  The user is warned that by switching to a<br>
&gt; &gt;&gt; dependency-based initscript system, the old order information is deemed<br>
&gt; &gt;&gt; irrelevant and thus completely ignored.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; There is also an override directory that can be used to change the<br>
&gt; &gt;&gt; dependency headers instead of editing the initscript, but we should get rid<br>
&gt; &gt;&gt; of any need to ship files in there as part of the release goal (local admin<br>
&gt; &gt;&gt; can place stuff there as he wishes).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; So, you can have local modifications to the *DEPENDENCY* information in an<br>
&gt; &gt;&gt; override directory.<br>
&gt; &gt; <br>
&gt; &gt; I'm pretty sure there is a misunderstanding here. An interface for modifying<br>
&gt; &gt; unmodified script properties (such as what runlevels it starts/stops) is<br>
&gt; &gt; desirable for use in package maintainer scripts when a new version of the<br>
&gt; &gt; package wishes to change the scripts start/stop or sequence/dependency<br>
&gt; &gt; properties. That is what Michael is poking us about.<br>
&gt; &gt; <br>
&gt; &gt; An interface for this was proposed for legacy (aka sysv-rc's) update-rc.d:<br>
&gt; &gt; http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/2008-September/002865.html<br>
&gt; &gt; <br>
&gt; &gt; The discussion went cold after Michael posited that the proposed interface is<br>
&gt; &gt; prone to error because it relies on a human to write out a snippet of shell<br>
&gt; &gt; code in a maintainer script. A similar interface could exist for insserv's<br>
&gt; &gt; update-rc.d. I am without any better ideas at this time.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I had an idea about this issue this week, we should probably discuss this<br>
in more depth when/if we get together in June for the boot performance meeting.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; <br>
&gt; Yeah, that's pretty much what I tried to say (thanks Kel for the clarification)<br>
&gt; <br>
&gt; For the record, I don't want it to be understood as I'm against insserv.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>It doesn't need to be said, everytime a discussion pops up about Debian boot<br>
system you seem to be in there with stimulating discussion.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>&gt; To the contrary: as we are already 95% there, it would imho be stupid to not<br>
&gt; make use of it and reap the benefits (though I still think we need something<br>
&gt; more flexible/dynamic long term, the improvements by insserv are nice for the<br>
&gt; short term).<br>
&gt; I'd even be in favour of dropping the static priorities interface (and file-rc<br>
&gt; for that matter), as it would make our lives as maintainers much simpler.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Yeah, I share those same sentiments.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Thanks, Kel.</p></body></html>