Re: How to suppress "A start job is running for offline-updates" knight-rider status output?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mi, 27.02.19 18:07, Mantas Mikulėnas (grawity@xxxxxxxxx) wrote:

> On Wed, Feb 27, 2019 at 6:04 PM Lennart Poettering <lennart@xxxxxxxxxxxxxx>
> wrote:
>
> >
> > Another option is to do this in your soruces btw:
> >
> > ```c
> > (void) kill(1, SIGRTMIN+21);
> > ```
> >
> > Sending SIGRTMIN+21 to PID 1 will disable the status output
> > explicitly. If you are sure you don't want it you can just do that, in
> > one line.
> >
>
> I used to do this from my getty@ ExecStartPre, instead of Type=idle, but
> when doing it inside software there's no way to reliably undo it, without
> knowing somehow whether the status was initially shown or hidden, is there?
> I suppose that's fine if the system reboots after updates anyway...

No, there's no concept of "refcounting" if that's what you are looking
for. There can only by one "owner" of the thing, and yes, ply and any
updater tool might confuse things if they both keep happily toggling
the setting in both ways.

Lennart

--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux