]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: always calculate the next restart interval
authorMike Yuan <me@yhndnzj.com>
Wed, 29 Mar 2023 20:04:22 +0000 (04:04 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 31 Mar 2023 00:22:58 +0000 (01:22 +0100)
commit5171356eeed4790bf2eeb864dfda0d04041dedf2
treeb3a79f6bfce1e269a312d11af225e782f717914d
parented2a4e8d78ff14b9724def7cac399dc49b7d0ac4
core: always calculate the next restart interval

Follow-up for #26902 and #26971

Let's always calculate the next restart interval
since that's more useful.

For that, we add 1 to s->n_restarts unconditionally,
and change RestartUSecCurrent property to RestartUSecNext.
man/org.freedesktop.systemd1.xml
src/core/dbus-service.c
src/core/service.c
src/core/service.h