diff options
Diffstat (limited to '')
-rw-r--r-- | man/systemd-soft-reboot.service.xml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/man/systemd-soft-reboot.service.xml b/man/systemd-soft-reboot.service.xml index c4ee207..34dd5aa 100644 --- a/man/systemd-soft-reboot.service.xml +++ b/man/systemd-soft-reboot.service.xml @@ -1,6 +1,6 @@ <?xml version='1.0'?> <!--*-nxml-*--> <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <!-- SPDX-License-Identifier: LGPL-2.1-or-later --> <refentry id="systemd-soft-reboot.service" @@ -109,28 +109,28 @@ also have to be configured manually for correct ordering and conflicting. For example:</para> <programlisting>[Unit] -Description=My surviving service +Description=My Surviving Service SurviveFinalKillSignal=yes IgnoreOnIsolate=yes DefaultDependencies=no After=basic.target -Conflicts=reboot.target -Before=reboot.target -Conflicts=kexec.target -Before=kexec.target -Conflicts=poweroff.target -Before=poweroff.target -Conflicts=halt.target -Before=halt.target -Conflicts=rescue.target -Before=rescue.target -Conflicts=emergency.target -Before=emergency.target +Conflicts=reboot.target kexec.target poweroff.target halt.target rescue.target emergency.target +Before=shutdown.target rescue.target emergency.target [Service] Type=oneshot -ExecStart=sleep infinity - </programlisting> +ExecStart=sleep infinity</programlisting> + </listitem> + + <listitem><para>On top of the above, templated units also need a configuration file for their slice, as + they by default use a slice named after the non-templated part of the unit. For example, for a + <filename>foo@test.service</filename> instance, a <filename>system-foo.slice</filename> unit may be + added with the following 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 @@ -179,14 +179,14 @@ ExecStart=sleep infinity <refsect1> <title>See Also</title> - <para> - <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemd-poweroff.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemd-suspend.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, - <citerefentry><refentrytitle>bootup</refentrytitle><manvolnum>7</manvolnum></citerefentry> - </para> + <para><simplelist type="inline"> + <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>systemd-poweroff.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>systemd-suspend.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> + <member><citerefentry><refentrytitle>bootup</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> + </simplelist></para> </refsect1> </refentry> |