[Pkg-sysvinit-devel] Bug#667464: /usr/sbin/update-rc.d: update-rc.d ignores sequence number parameter

josh jbuhl_nospam at gmx.net
Wed Apr 4 10:48:03 UTC 2012


Hi Roger,

Thanks very much for that quick and very helpful reply! If that's the
case, then just the man page needs to be updated appropriately. It's
very irritating to have documented options be completely ignored, since
you waste time wondering why the heck it's not working.

cheers,

-j




On 04/04/2012 11:54 AM, Roger Leigh wrote:
> On Wed, Apr 04, 2012 at 11:34:25AM +0200, josh wrote:
>> For example, I've written an init.d script that I want to
>> start before another service gets started. I want it to have the start
>> index 20. It also should not be stopped before certain other
>> services are stopped, so I want it to have a stop index of
>> 02. However:
> 
>> update-rc.d: using dependency based boot sequencing
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Nowadays, the numbers are not used on most systems.  We
> order the scripts using dependency information in the script
> header.
> 
> For example, this is the header from /etc/init.d/postfix:
> 
> ### BEGIN INIT INFO
> # Provides:          postfix mail-transport-agent
> # Required-Start:    $local_fs $remote_fs $syslog $named $network $time
> # Required-Stop:     $local_fs $remote_fs $syslog $named $network
> # Should-Start:      postgresql mysql clamav-daemon postgrey spamassassin
> # Should-Stop:       postgresql mysql clamav-daemon postgrey spamassassin
> # Default-Start:     2 3 4 5
> # Default-Stop:      0 1 6
> # Short-Description: start and stop the Postfix Mail Transport Agent
> # Description:       postfix is a Mail Transport agent
> ### END INIT INFO
> 
> If you add similar information to your script, it should do
> the right thing.  Rather than using numbers, explicitly state
> which services you need, and it will end up in the correct
> order.
> 
> 
> Regards,
> Roger
> 






More information about the Pkg-sysvinit-devel mailing list