Bug#884994: systemd: shutdown does not send its warning messages when time is more than ten minutes

Ansgar ansgar at 43-1.org
Tue Sep 3 09:25:33 BST 2019


Christoph Pleger writes:
>> Can you be more specific, how sysvinit behaved.
>> When exactly did sysvinit start with the notification messages, what
>> was
>> the initial interval and how exactly did the interval change on each
>> iteration.
>
> I am sorry, I do not remember more than I already wrote and
> unfortunately, I have no machine with sysvinit any more.

This should be the `needwarning()` function in sysvinit's
src/shutdown.c[1].  With the default setting QUIET_NONE you get:

 - a warning every minute in the last 10 minutes
 - a warning every 15 minutes in the last hour
 - a warning every 30 minutes in the last 3 hours
 - a warning every hour before that

Ansgar

  [1] https://sources.debian.org/src/sysvinit/2.93-8/src/shutdown.c/#L467



More information about the Pkg-systemd-maintainers mailing list