You are not logged in.
Solution: Jump to https://bbs.archlinux.org/viewtopic.php … 6#p1262166
I have set up my system to user systemd units to start my environment (roughly following the wiki).
My problem is that I cannot exit my window manager (using “io (exitWith ExitSuccess)” in Xmonad): the service file starting the WM (xmonad) stops/exits with success, but the xorg.service keeps
running. I need to switch to TTY2, systemctl --user stop xorg.service by hand, then switch to TTY1, execute Ctrl-C, and then I finally get my login
prompt back.
This is a bit annoying, and I don't know how to fix it.
Here are the relevant (I think) unit files:
# xmonad.target
[Unit]
Description=XMonad
Wants=xorg.target
Wants=xinit.target
Requires=dbus.socket
AllowIsolate=true
[Install]
Alias=default.target# xmonad.service
[Unit]
Description=Starts Xmonad
Before=xinitrc.target
After=xorg.target
Requires=xorg.target
[Service]
ExecStart=/usr/bin/xmonad
Environment=DISPLAY=:0
Restart=no
[Install]
WantedBy=xmonad.target
RequiredBy=xorg.serviceAs you can see, I have added the RequiredBy=xorg.service line at the bottom, hoping that if xmonad.service exits, so should xorg.service - but to
no avail.
What do I have to do in order to completely stop X and get my login prompt on TTY1 back?
EDIT: I am of course using the user-session-units.
Last edited by Stalafin (2013-04-22 13:54:45)
Offline
I think it would be better to remove the RequiredBy line since xorg does not require xmonad.
Last edited by progandy (2013-04-22 13:18:33)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Why not use `systemctl --user exit`? (and bind it to a key in xmonad.hs)
Offline
Why not use `systemctl --user exit`? (and bind it to a key in xmonad.hs)
I like this solution. It makes a lot of sense to actually do this stuff in terms of systemd. Thanks a lot for that suggestion!
Offline
I know it's an old thread (not really old) but I have the same problem. The question is your solution doesnt work with me. It just give me an error like this:
Failed to issue method call: The name org.freedesktop.login1 was not provided by any .service files
Failed to issue method call: Process /bin/false exited with status 1Offline