Skip to content
Snippets Groups Projects
Commit 4fc590e1 authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

Never exit when idle but reboot is pending


The previous approach for making reboot pending postpone service
shutdown was not robust, because it would only extend the interval of
the check, not stop the actual exit.

It worked fine for shorter periods, as the default (60 second) value was
masking what the integration tests were measuring (10 seconds).

Extend RebootDelayer interface with a new proto.RebootPending method
which checks if a reboot timer exists. This makes the check race-free
regardless of the frequency.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent fbf57e5b
No related branches found
No related tags found
No related merge requests found
Pipeline #2954 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment