diff options
author | Luca Boccassi <bluca@debian.org> | 2023-12-13 15:01:17 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-01-26 15:41:20 +0100 |
commit | 34bbda18a5f07fa5a52e8d85d20637ce1c00c4ec (patch) | |
tree | 9c965f706a5764cfb29d6d3dd72b45527f0c25c5 /man/systemd-soft-reboot.service.xml | |
parent | core: add SYSTEMD_VERITY_SHARING env var for local development (diff) | |
download | systemd-34bbda18a5f07fa5a52e8d85d20637ce1c00c4ec.tar.xz systemd-34bbda18a5f07fa5a52e8d85d20637ce1c00c4ec.zip |
man: add working example for sd_bus_set_watch_bind()
This example is able to deal with D-Bus going away and reappearing,
like on soft-reboot, so link it in both manpages.
Diffstat (limited to 'man/systemd-soft-reboot.service.xml')
-rw-r--r-- | man/systemd-soft-reboot.service.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man/systemd-soft-reboot.service.xml b/man/systemd-soft-reboot.service.xml index 0a35a77b89..138c919ee7 100644 --- a/man/systemd-soft-reboot.service.xml +++ b/man/systemd-soft-reboot.service.xml @@ -3,7 +3,8 @@ "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"> +<refentry id="systemd-soft-reboot.service" + xmlns:xi="http://www.w3.org/2001/XInclude"> <refentryinfo> <title>systemd-soft-reboot.service</title> @@ -136,6 +137,12 @@ ExecStart=sleep infinity attached, if configured to remain until the very end of the shutdown process. (Also achieved via <varname>DefaultDependencies=no</varname>, and by avoiding <varname>Conflicts=umount.target</varname>)</para></listitem> + + <listitem><para>If the unit publishes a service over D-Bus, the connection needs to be re-established + after soft-reboot as the D-Bus broker will be stopped and then started again. When using the sd-bus + library this can be achieved by adapting the following example. + <programlisting><xi:include href="sd_bus_service_reconnect.c" parse="text"/></programlisting> + </para></listitem> </itemizedlist> <para>Even though passing resources from one soft reboot cycle to the next is possible this way, we |