You are not logged in.

#1 2014-06-21 08:57:05

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[systemd] Let services wait until X is started [solved]

Hi there,

I have a quick question. I have some services that I would like to start once X is started. Is the only way to currently achieve this by using a display manager (graphical.target)?

Thanks ahead!

Last edited by orschiro (2014-06-22 11:42:50)

Offline

#2 2014-06-21 12:06:32

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [systemd] Let services wait until X is started [solved]

The problem is the login sessions...
I don't use systemd user sessions (actively) but this looks like something that could probably do what you want: https://wiki.archlinux.org/index.php/Sy … ay_manager

Last edited by rebootl (2014-06-21 12:06:54)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#3 2014-06-21 13:04:12

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [systemd] Let services wait until X is started [solved]

Thanks rebootl!

Does that mean that the services will only wait for a started X if I automatically log in into my session, thus bypassing the login in tty?

In that case, I might consider a display manager instead as I do not want to automatically login into my system (laptop, thus to risky).

Last edited by orschiro (2014-06-21 13:04:55)

Offline

#4 2014-06-21 16:05:35

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [systemd] Let services wait until X is started [solved]

Ah sorry, I guess I just assumed the auto-login.

Is it still this issue: https://bbs.archlinux.org/viewtopic.php?id=179645 ? If yes I think #4 gives a correct way to solve this.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#5 2014-06-22 11:42:40

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [systemd] Let services wait until X is started [solved]

Marked as solved.

I eventually switched to using a display manager (lightdm) as I do not favour the sudo approach.

Thanks!

Offline

Board footer

Powered by FluxBB