[systemd-devel] Create a new logind session from a systemd --user unit
abdo.roig at gmail.com
Sat Jul 27 12:47:13 PDT 2013
I'm happily using systemd 204 user instance to handle my desktop (xorg, awesome
wm, mpd, etc.) in Arch. I started experimenting with systemd 206 trying to adapt
my setup to the changes in cgroups, slices, and all that.
In 206, systemd user session is started automatically by pam_systemd when I
login to a tty. Then, I want to manually launch my window manager, in a new
logind session for my user, on a different tty.
I tried adding User and PAMName to my window manager unit awesome.service:
Description=Awesome window manager
After=xorg at 0.service
Requisite=xorg at 0.service
However, as soon as I start the service with
systemctl --user start awesome.service
The unit fails with message
systemd: Failed at step GROUP spawning /home/abdo/.config/systemd/scripts/awesome.sh: Operation not permitted
Running the same service from the system systemd instance (with an already
running user-owned xorg), works as expected, creating a new session.
I think it fails setting the group for the process, it does not even get to the
PAM stuff. The user abdo is the same for which the systemd user instance is
running, of course.
Is this a bug in systemd or it's me missing something?
More information about the systemd-devel