[Discuss] Corralling Processes on Linux

Chuck Anderson cra at WPI.EDU
Sat Jan 20 16:09:35 EST 2018


On Sat, Jan 20, 2018 at 03:56:34PM -0500, Kent Borg wrote:
> Is there a way to do this with daemonized processes? I create an
> oddball collection, and want the ability to kill the whole lot.
... 
> Why I am doing this: I am playing with lots of different processes
> communicating with each other, maybe some coming and going
> incrementally. I want the ability occasionally kill them all and
> start from a clean slate. ("Oh, I had two of that one running for
> the last hour! Silly /me/ to waste all that time!" ...I want to
> avoid that set of bugs.)

systemd has a few features which might work well for your use case:

https://linuxaria.com/article/how-to-manage-processes-with-cgroup-on-systemd

https://wiki.archlinux.org/index.php/Systemd/User



More information about the Discuss mailing list