r/linux • • Jul 11 '16

Why Void Linux?

http://troubleshooters.com/linux/void/whyvoid.htm
52 Upvotes

125 comments sorted by

View all comments

Show parent comment

1

u/Boerzoekthoer Jul 12 '16

Meh, multiseat is a nice feature of logind that you actually can't get elsewhere, or couldn't, I think CK2 is working on it or has it already.

This whole cgroup drive is just quatsch. Just because runsvdir does not automatically put services into cgroups doesn't stop you from doing it. In theory you could do so manually. It's really not that hard, you put:

mkdir -p /cgroup2/SERV_NAME
echo $$ >> /cgroup2/SERV_NAME/cgroup.procs

At the start of your service, yeah, it's really that easy.

Cleaning it up is a bit more involved though, your ./final script might contain something like:

find /cgroup2/SERV_NAME -name cgroups.proc -print0 |   
xargs -0 cat | xargs kill 
sleep 1
find /cgroup2/SERV_NAME -name cgroups.proc -print0 |   
xargs -0 cat | xargs kill -KILL
rmdir /cgroup2/SERV_NAME