You are not logged in.
Hi!
Yesterday i was trying user-session-units and xorg-launch-helper. I already managed my session with systemd --user (autologin to vt1, auto startx, and in .xinitrc "exec /usr/lib/systemd/systemd" only). So i thought i could fully switch to xorg-launch-helper.
Well everything worked great, but i had this weird issue: poweroff or reboot (with systemctl poweroff/reboot) worked fine, but had a huge delay, something like 2mins.
It seemed it killed my desktop flawlessly, but then it hanged on my "pre xorg.service" vt1 output (well the "decompressing kernel" output, during bootup). I couldn't switch vt, i only had to wait.
This is what journalctl logged : http://pastie.org/7938190 . (Please don't ask me why first lines have the same timestamp as last lines...i don't really know that)
Any idea?
Ps: i also found out that exiting my session with "systemctl --user exit" , and then everything worked as expected (eg: i could reboot/poweroff without delays)
Thanks!
EDIT: found workaround, read post #3 . Btw it is not a solution, but only a workaround.
Last edited by nierro (2013-06-05 21:20:02)
Offline
I can't help you with your problem, just wanted to add that I observe exactly the same behaviour and have not found a solution so far.
In a thread where I asked a similar question to yours, I was pointed to this: https://bbs.archlinux.org/viewtopic.php?id=162327
I am not sure though if this is actually directly related to our problem.
Offline
I have this problem too. I had not seen this thread you linked to above before... but in my one reboot test (which shoud be taken with a bucket of salt since my machine sometimes shuts down okay) it worked great. It would seem that 65kid's workaround is effective. I'm going to reboot again to see if this is consistent. I'll udpate if it hangs.
Edit: So it didn't hang, but it looked like it was going to. Often the session will seem to start to exit, but the root window will remain (the background). It did just this, and then after a second, continued to the printing of the shutdown messages. Success!
Edit2: I guess I should note the actual fix so that others don't have to follow that link. As putting the workaround in more than one place is probably optimal. So you need to add "TimeoutStopSec=2" to the [Service] section of the user-session@.service. This can be done either by the .include function of unit files, or by the drop-in replacement functionality via /etc/systemd/system/user-session@<youruser>.d/<added-config>.conf. I would imagine that you could play around with the value of the timeout. Systemd's time capabilities are pretty extensive, so I imagine that you could actually configure it down to the ms here.
Last edited by WonderWoofy (2013-06-04 23:17:41)
Offline
@Stalafin: you're great! Thanks, it works! And thanks for revive this thread too ![]()
@WonderWoofy: thanks for testing that ![]()
I'll mark this as solved!
Offline
I don't know if I would call it "solved". Sure we have found a workaround for now, but the solution presented does not actually solve the problem. What TimeoutStopSec actually does is specifies the time until it actually issues a SIGKILL. Ideally, no problem should have to be exited with a SIGKILL every time (or most of the time).
I would take away the [Solved] for now and maybe put in the first post that a temporary workaround has been found... but it is up to you.
Offline
I guess you're right!@wonderwoofy
I'll do it right now!
Offline