-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A better solution to the Void Linux shutdown problem #408
Comments
Perhaps this can be handled by configuring Please see this solution: https://github.com/lxc/lxd/issues/5592#issuecomment-1339984790 I tested it. It stopped the container right away. I need to confirm that it was truly a graceful shutdown, but given that the halt signal is how graceful shutdowns should be requested, it seems promising. |
From the runit-init man page:
Sending |
So a proper fix would be an init script (not rc.local) which if a container is detected goes on to chmod /run/runit/stopit as 100? Can someone familiar with voidlinux send a PR that does that? (needs an update to voidlinux.yaml) |
In newer images,
In older images, it is
I don't know when that change was made but the current official void repo still has it as |
Here's the fundamental problem with the yaml right now: The modification in Line 234 in 3f99602
runit-void package gets updated. The recommendation from the void folks is to put this in /etc/rc.local .
|
I have proposed void-linux/void-runit#113 as a step towards a solution here. Once that PR is merged, we will need to make the necessary changes to the void YAML here to create a local core service that will change the permissions on |
Adding a note for voidlinux/musl looks like adding however neither work at all voidlinux/musl images, stop requests just hang. I might investigate farther later, but thought I should note for anyone else trying that here. |
New related PR upstream void-linux/void-runit#122 |
Thank you @sbromberger the work is merged. EDIT: upstream, not any local lxc changes that are also needed |
stopping void containers still seems to take a long time, eventually timing out. |
PR #183 attempts to fix the Void Linux shutdown problem, but any changes to
/etc/runit/1
won't survive an update to the runit-void package.A better solution is the change the permissions of
/etc/runit/stopit
in/etc/rc.local
, which is sourced during runit stage 2 and can be used to specify configuration to be done prior to login.I've added the following line to
/etc/rc.local
to set the permissions for/etc/runit/stopit
.The text was updated successfully, but these errors were encountered: