[arch-dev-public] [Fwd: Re: [PATCH] Implement a hook-system that allows to add custom code to the initscripts at certain places]

Thomas Bächler thomas at archlinux.org
Thu Aug 27 18:08:46 EDT 2009


Forwarding to the dev list.

-------- Original-Nachricht --------
Betreff: Re: [PATCH] Implement a hook-system that allows to add custom 
code to the initscripts at certain places
Datum: Thu, 27 Aug 2009 16:56:32 +0200
Von: Kurt J. Bosch <kujub at quantentunnel.de>
An: Thomas Bächler <thomas at archlinux.org>
CC: Public mailing list for ArchLinux development 
<arch-dev-public at archlinux.org>
Referenzen: <4A93C509.7060505 at archlinux.org> 
<4A955EAE.3040904 at quantentunnel.de> <4A9561E1.4050108 at archlinux.org>

I noticed one problem: Fbsplash is unable now to show the SIGTERM
message since the daemon restarter is forked before the stat_busy.
[code]
run_hook shutdown_prekillall

# Terminate all processes
stat_busy "Sending SIGTERM To Processes"
[/code]

To fix this please move the run_hook *behind* the stat_busy in
rc.shutdown and rc.single:
[code]
# Terminate all processes
stat_busy "Sending SIGTERM To Processes"
run_hook shutdown_prekillall
[/code]

This would also improve consistency since in rc.sysinit there is already:
[code]
stat_busy "Mounting Local Filesystems"
...
run_hook sysinit_premount
[/code]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://www.archlinux.org/pipermail/arch-dev-public/attachments/20090828/bba503cf/attachment.pgp>


More information about the arch-dev-public mailing list