[systemd-devel] How to wait for "loginctl enable-linger username" to finish?

Erik Sjölund erik.sjolund at gmail.com
Mon Jan 11 18:08:25 UTC 2021

In a script I noticed that I needed to add a "sleep 1" after
"loginctl enable-linger runner", otherwise the next command
"systemctl --user" would fail.

Is it possible to somehow remove the "sleep 1"?

For details see:

Erik Sjölund

More information about the systemd-devel mailing list