diff options
author | Luca Boccassi <bluca@debian.org> | 2023-07-20 02:22:52 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-07-21 18:05:41 +0200 |
commit | b80fc61e8971283606f9cd0a48e31d0f701c82f1 (patch) | |
tree | f54febc8671c65511d97e865ce4a7b438be8d137 /man/systemd-soft-reboot.service.xml | |
parent | Merge pull request #28460 from bluca/scope_run_env (diff) | |
download | systemd-b80fc61e8971283606f9cd0a48e31d0f701c82f1.tar.xz systemd-b80fc61e8971283606f9cd0a48e31d0f701c82f1.zip |
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.
Diffstat (limited to 'man/systemd-soft-reboot.service.xml')
-rw-r--r-- | man/systemd-soft-reboot.service.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/man/systemd-soft-reboot.service.xml b/man/systemd-soft-reboot.service.xml index 5960cf90a6..15cec5a6f3 100644 --- a/man/systemd-soft-reboot.service.xml +++ b/man/systemd-soft-reboot.service.xml @@ -124,12 +124,9 @@ otherwise the old root filesystem will be kept in memory as long as the unit is running.</para> <para>If units shall be left running until the very end of shutdown during a soft reboot operation, but - shall be terminated regularly during other forms of shutdown, it's recommended to set - <varname>DefaultDependencies=no</varname> and then place - <varname>Conflicts=</varname>/<varname>Before=</varname> onto <filename>reboot.target</filename>, - <filename>kexec.target</filename>, <filename>poweroff.target</filename> and - <filename>halt.target</filename> (but <emphasis>not</emphasis> onto - <filename>soft-reboot.target</filename>).</para> + shall be terminated regularly during other forms of shutdown, <varname>IgnoreOnSoftReboot=yes</varname> + can be set. This will ensure that soft reboot operations do not affect it, but other types of reboot + or shutdown stop it as expected.</para> </refsect1> <refsect1> |