diff options
author | Luca Boccassi <bluca@debian.org> | 2024-06-06 23:10:23 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-06-07 13:33:18 +0200 |
commit | d91c7c91bf5de3b12cc2b29dd8b5ad49f29448ef (patch) | |
tree | 4be723894b91b843ba76200acbf6e5d107a87d3c /man/systemd-soft-reboot.service.xml | |
parent | Merge pull request #33237 from bluca/dlopen_deps (diff) | |
download | systemd-d91c7c91bf5de3b12cc2b29dd8b5ad49f29448ef.tar.xz systemd-d91c7c91bf5de3b12cc2b29dd8b5ad49f29448ef.zip |
man: note that templated surviving units need a drop-in for their slice
As reported on the mailing list, this is non-obvious, so document it.
https://lists.freedesktop.org/archives/systemd-devel/2024-June/050351.html
Diffstat (limited to 'man/systemd-soft-reboot.service.xml')
-rw-r--r-- | man/systemd-soft-reboot.service.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/systemd-soft-reboot.service.xml b/man/systemd-soft-reboot.service.xml index 668b664513..9b29a5d68a 100644 --- a/man/systemd-soft-reboot.service.xml +++ b/man/systemd-soft-reboot.service.xml @@ -122,6 +122,17 @@ Type=oneshot ExecStart=sleep infinity</programlisting> </listitem> + <listitem><para>On top of the above, templated units also need a drop-in configuration file for their + slice, as they are by default ran inside a slice named after the non-templated part of the unit. For + example, for a <filename>foo@test.service</filename> instance configured with the default slice, a + drop-in <filename>system-foo.slice.d/survive.conf</filename> is required, with content:</para> + + <programlisting>[Unit] +SurviveFinalKillSignal=yes +IgnoreOnIsolate=yes +DefaultDependencies=no</programlisting> + </listitem> + <listitem><para>File system mounts may remain mounted during the transition, and complex storage attached, if configured to remain until the very end of the shutdown process. (Also achieved via <varname>DefaultDependencies=no</varname>, and by avoiding |