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
Epoptes clients delay 1.5 minutes on reboot/shutdown #66
Comments
The root epoptes-client is usually running without DBUS_SESSION_BUS_ADDRESS set in the process environment. Unfortunately, the "from gi.repository import Gtk" line from epoptes-client python-based utilities autolaunches dbus! This then causes the 1.5 minute shutdown delay issue, because systemd can't cleanly terminate the autospawned dbus process. To reproduce the issue, boot an LTSP client, don't login, and right click->open a root terminal from epoptes. Verify that I've yet to find any clean solutions to this issue, so for the moment I'll be exporting a fake DBUS_SESSION_BUS_ADDRESS so that it's not autolaunched while importing Gtk. |
An additional thing to note here is that dbus isn't killed properly, otherwise it would waste some RAM but it wouldn't delay shutdown. In the future if we use systemd for the session epoptes-client too, we might tell it to keep relaunching and completely remove the SIGQUIT requirement (and even the external socat loop). |
Fix committed in 8361913. |
I'll reopen this as it needs a more brutal workaround: So setting the DBUS_SESSION_BUS_ADDRESS should probably be done in client-functions, not just in our .py scripts. |
I implemented that in d42e5dd, but I'll keep this issue open until the relaunching logic is reworked and KillSignal=SIGQUIT is removed. |
If I boot an LTSP client and immediately try to reboot it with epoptes, it works fine.
But if I do "lock screen" or "send a message", before logging in on the client, and any time after that I try reboot/shutdown, it delays 1.5 minute before doing so.
The text was updated successfully, but these errors were encountered: