-
Notifications
You must be signed in to change notification settings - Fork 23
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
Debugging Spontaneous Shutdown #14
Comments
pkill probably matched the runsvdir process because you used should have used sv to send signals to services, first for not accidentially matching the wrong process, second to avoid race conditions with reused pids. |
You sound like you know what you're talking about :) So I guess you would not mark this as a potential bug? I'm happy to consider is user error for now and not use "pkill -f" again on any Void system :) |
Its the only possible explanation with the given information, if runsvdir receives the TERM signal, it will exit with 0 and runit-init will transition into stage 3 and do a clean shutdown. runsvdir has this annoying mechanism where it changes the cmdline to what child processes write to stderr, so services without a log service that write to stderr (and in this case dhcpcd's run file redirects stdout to stderr) will end up in the command line Here is the output from my system, it doesn't contain the "dhcpcd" string, but its very likely that dhcpcd might end up there when it starts or logs something different:
|
We could change |
That would break catch-all logging without some kind of alternative. |
/dev/console output is as good if not better than the command line buffer. (they are both shit) |
I would agree with you if Void was better about shipping appendant loggers. As it stands though making that change will make an absolute mess out of things unless there's a suitable console reader set up somewhere else. |
Facts:
Any idea how this could have happened? Any idea where to look for clues?
Thanks!
The text was updated successfully, but these errors were encountered: