[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strang shutdown mechanism with Debian



Miquel van Smoorenburg writes:

> >> - Sxx scripts in runlevels 0 and 6 should be executed with a "stop"
> >>   argument instead of "start" (!)
> 
> Not should, _are_. This is because normally in /etc/rc{0,6}.d there are
> no Sxx scripts at all. However some of the methods started in /etc/rcS.d
> need to be stopped just before reboot. Because most of the levels in
> Kxx were already taken, I decided to use Sxx for this as it was unused -
> no use in starting anything in runlevel 0 or 6 just before halt or reboot..

This is not a clean method.  I'm dissappointed.

What do you mean by "most of the levels in Kxx were already taken"?

I'm referring to master as plain hamm box.  rc0.d contains these
Snn scripts:

lrwxrwxrwx   1 root     root           18 Mar 14 13:16 S20sendsigs -> ../init.d/sendsigs*
lrwxrwxrwx   1 root     root           17 Mar 14 13:16 S30urandom -> ../init.d/urandom*
lrwxrwxrwx   1 root     root           18 Mar 14 13:16 S40umountfs -> ../init.d/umountfs*
lrwxrwxrwx   1 root     root           20 Mar 14 13:16 S50mdutils.sh -> ../init.d/mdutils.sh
lrwxrwxrwx   1 root     root           14 Mar 14 13:16 S90halt -> ../init.d/halt*

rc6.d contains these:

lrwxrwxrwx   1 root     root           18 Mar 14 13:16 S20sendsigs -> ../init.d/sendsigs*
lrwxrwxrwx   1 root     root           17 Mar 14 13:16 S30urandom -> ../init.d/urandom*
lrwxrwxrwx   1 root     root           18 Mar 14 13:16 S40umountfs -> ../init.d/umountfs*
lrwxrwxrwx   1 root     root           20 Mar 14 13:16 S50mdutils.sh -> ../init.d/mdutils.sh
lrwxrwxrwx   1 root     root           16 Mar 14 13:16 S90reboot -> ../init.d/reboot*

Only urandom contains diversion between "start" and "stop".
(mdutils.sh is non-existant, it would behave different, too.)

For me it would make more sense moving the S*scripts that
need to be called with "stop" to K92..K98.  I don't see that
Knn is "full".

Apart from that, why is sendsigs called _before_ all scripts
got the chance to terminate their services?  This broke the
shutdown mechanism with recent file-rc installations.

Regards,

	Joey

-- 
  / Martin Schulze                      http://home.pages.de/~joey/       
 / *** Fatal Error: Found [MS-Windows],            joey@linux.de /
/                             repartitioning Disk for Linux ... /

Attachment: pgpnL4xte6XMm.pgp
Description: PGP signature


Reply to: