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

Erik Sjölund erik.sjolund at gmail.com
Thu Jan 14 18:15:01 UTC 2021


Thanks a lot! I will try it out later when this new functionality is
more generally available.
Erik Sjölund

On Mon, Jan 11, 2021 at 8:13 PM Lennart Poettering
<lennart at poettering.net> wrote:
>
> 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
>
> https://github.com/systemd/systemd/pull/17967
>
> Lennart
>
> --
> Lennart Poettering, Berlin


More information about the systemd-devel mailing list