]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core: add RestartSteps= and RestartSecMax= for exponentially increasing
authorMike Yuan <me@yhndnzj.com>
Mon, 20 Mar 2023 10:49:39 +0000 (18:49 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 27 Mar 2023 11:31:12 +0000 (19:31 +0800)
commitbe1adc27fc61ba723bd0392199f7b82ef9f1c970
tree11b120f5cdbea35ed59c4198c0179d79c4fcc7ee
parentf447b741854a612b68941a5c791ed5208a5b140a
core: add RestartSteps= and RestartSecMax= for exponentially increasing
interval between restarts

RestartSteps= accepts a positive integer as the number of steps
to take to increase the interval between auto-restarts from
RestartSec= to RestartSecMax=, or 0 to disable it.

Closes #6129
man/org.freedesktop.systemd1.xml
man/systemd.service.xml
src/core/dbus-service.c
src/core/load-fragment-gperf.gperf.in
src/core/meson.build
src/core/service.c
src/core/service.h