[systemd-devel] systemd user service when x is started
arnaud gaboury
arnaud.gaboury at gmail.com
Fri Nov 7 12:00:14 PST 2014
>
> I don't understand, if you start X manually, why don't you launch
> systemctl --user wm.target from your .xprofile or an equivalent file?
>
I maybe was not explicit enough.
I have a bunch of user services started as soon as I log in.
------------------------------------------------------------------------------
gabx at hortensia ➤➤ core/linux % systemctl --user status
● hortensia
State: running
Jobs: 0 queued
Failed: 0 units
Since: Fri 2014-11-07 10:55:24 CET; 10h ago
CGroup: /user.slice/user-1000.slice/user at 1000.service
├─761 /usr/lib/systemd/systemd --user
├─762 (sd-pam)
├─dbus.service
│ └─803 /usr/bin/dbus-daemon --session --address=systemd:
--nofork --systemd-activation
├─tmux.service
│ ├─6488 /usr/bin/tmux new-session -d -n irc irssi && zsh
│ ├─6489 zsh -c irssi && zsh
│ └─6490 irssi
├─urxvtd.service
│ └─1132 /usr/bin/urxvtd -o -q -f
├─gpg-agent.service
│ └─805 /usr/bin/gpg-agent --daemon
--homedir=/home/gabx/.config/gnupg
└─ssh-agent.service
└─801 /usr/bin/ssh-agent -d -a /run/user/1000/ssh_auth_sock
------------------------------------------------------------
then I $ startx
After this command, I would like systemctl --user start some services
(window manager, etc). The first bunch of services are grouped under
the console.target. Now I am looking for a way to group GUI services
in something like graphical.target (or whatever else name).
More information about the systemd-devel
mailing list