On Mi, 27.02.19 18:07, Mantas Mikulėnas (graw...@gmail.com) wrote:

> On Wed, Feb 27, 2019 at 6:04 PM Lennart Poettering <lenn...@poettering.net>
> 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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to