[arch-projects] Arch Linux initscripts (killall)

C Anthony Risinger anthony at xtfx.me
Sat Oct 29 21:24:58 EDT 2011


On Oct 29, 2011 4:58 PM, "Tom Gundersen" <tomegun at archlinux.org> wrote:
>
>    In principle, I'm worried that, with the right ammonut of bad luck,
>    we could fork off some process at exactly the wrong time which escapes
>    the killall logic.
>
>    This, by the way, highlights the frailty of the killall stuff.

Why not make use of the `name` cgroup in same way systemd does?  Then you
can simply:

kill $(</path/to/cgroup/tasks)

... in a loop for a couple iterations as needed.

C Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20111029/0ce84165/attachment.html>


More information about the arch-projects mailing list