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

Lennart Poettering lennart at poettering.net
Mon Jan 11 19:13:24 UTC 2021

On Mo, 11.01.21 19:08, Erik Sjölund (erik.sjolund at gmail.com) wrote:

> Hello,
> 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:
> https://github.com/eriksjolund/user-systemd-service-actions-workflow



Lennart Poettering, Berlin

More information about the systemd-devel mailing list