Re: Delay to starting services?
Reply #1 –
I don't think there's a way to specify how long s6 should wait before restarting a service in the service directory unfortunately. However, it is possible to stop a service from restarting with a s6-svc command (s6-svc -O /run/service/lightdm-srv). So you could put a file named "finish" in the /etc/s6/sv/lightdm-srv like so:
#!/usr/bin/execlineb -P
s6-svc -O /run/service/lightdm-srv
That should stop it from restarting. You would need to recompile and update the s6-rc database (sh /usr/share/libalpm/scripts/s6-rc-db-update-hook).
That being said... your problem sounds like lightdm does start up a graphical session (which causes the tty to switch) but somehow fails anyway? This shouldn't really happen. Could you post some logs?