]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
core: add IgnoreOnSoftReboot= unit option
authorLuca Boccassi <bluca@debian.org>
Thu, 20 Jul 2023 00:22:52 +0000 (01:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Jul 2023 16:05:41 +0000 (18:05 +0200)
commitb80fc61e8971283606f9cd0a48e31d0f701c82f1
treef54febc8671c65511d97e865ce4a7b438be8d137
parent03d298e1e549fb20cd495520cc7ff0fddcb636c7
core: add IgnoreOnSoftReboot= unit option

As it says on the tin, configures the unit to survive a soft reboot.
Currently all the following options have to be set by hand:

Conflicts=reboot.target kexec.target poweroff.target halt.target
Before=reboot.target kexec.target poweroff.target halt.target
After=sysinit.target basic.target
DefaultDependencies=no
IgnoreOnIsolate=yes

This is not very user friendly. If new default dependencies are added,
or new shutdown/reboot types, they also have to be added manually.

The new option is much simpler, easy to find, and does the right thing
by default.
18 files changed:
man/org.freedesktop.systemd1.xml
man/systemd-soft-reboot.service.xml
man/systemd.unit.xml
src/core/dbus-unit.c
src/core/load-fragment-gperf.gperf.in
src/core/path.c
src/core/scope.c
src/core/service.c
src/core/slice.c
src/core/socket.c
src/core/target.c
src/core/timer.c
src/core/transaction.c
src/core/unit-serialize.c
src/core/unit.c
src/core/unit.h
src/shared/bus-unit-util.c
test/units/testsuite-82.sh