From: Mike Yuan Date: Mon, 15 Dec 2025 22:58:07 +0000 (+0100) Subject: man: document RefreshOnReload= X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24f458da814659f0d34a0081d9192a8f872ebf4d;p=thirdparty%2Fsystemd.git man: document RefreshOnReload= --- diff --git a/man/org.freedesktop.systemd1.xml b/man/org.freedesktop.systemd1.xml index e6c2c6fdab8..fbed12c4be9 100644 --- a/man/org.freedesktop.systemd1.xml +++ b/man/org.freedesktop.systemd1.xml @@ -2833,6 +2833,8 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice { readonly as ExtraFileDescriptorNames = ['...', ...]; @org.freedesktop.DBus.Property.EmitsChangedSignal("const") readonly i ReloadSignal = ...; + @org.freedesktop.DBus.Property.EmitsChangedSignal("const") + readonly as RefreshOnReload = ['...', ...]; readonly t ExecMainStartTimestamp = ...; readonly t ExecMainStartTimestampMonotonic = ...; readonly t ExecMainExitTimestamp = ...; @@ -3534,6 +3536,8 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice { + + @@ -4180,6 +4184,8 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice { + + @@ -12514,8 +12520,9 @@ $ gdbus introspect --system --dest org.freedesktop.systemd1 \ ManagedOOMKills, ExecReloadPost, and ExecReloadPostEx were added in version 259. - BindNetworkInterface, and - MemoryTHP were added in version 260. + BindNetworkInterface, + MemoryTHP, and + RefreshOnReload were added in version 260. Socket Unit Objects diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 106e1dcdb50..0ba3e011f21 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -572,14 +572,13 @@ To disable the safety check that the extension-release file name matches the image file name, the x-systemd.relax-extension-release-check mount option may be appended. - This option can be used together with a service type and - systemd.v7 - to manage configuration updates. When such a service carrying confext images is reloaded via - systemctl reload foo.service or equivalent D-Bus method, the confext itself will - be reloaded to pick up any changes. This only applies to confext extensions. Note that in case a - service has this configuration enabled at first, and then it is subsequently removed in an update - followed by a daemon-reload operation, reloading the confexts will be a no-op, and a full service - restart is required instead. See + If a service employs this option with + systemd.v7, + and has enabled (the default), the confexts will + be refreshed to pick up any changes on service reload. This only applies to confext extensions. + Note that in case a service has this configuration enabled at first, and then it is subsequently + removed in an update followed by a daemon-reload operation, reloading the confexts will be a no-op, + and a full service restart is required instead. See systemd.service5 also for details. @@ -630,14 +629,13 @@ or the host. See: os-release5. - This option can be used together with a service type and - systemd.v7 - to manage configuration updates. When such a service carrying confext directories is reloaded via - systemctl reload foo.service or equivalent D-Bus method, the confext itself will - be reloaded to pick up any changes. This only applies to confext extensions. Note that in case a - service has this configuration enabled at first, and then it is subsequently removed in an update - followed by a daemon-reload operation, reloading the confexts will be a no-op, and a full service - restart is required instead. See + If a service employs this option with + systemd.v7, + and has enabled (the default), the confexts will + be refreshed to pick up any changes on service reload. This only applies to confext extensions. + Note that in case a service has this configuration enabled at first, and then it is subsequently + removed in an update followed by a daemon-reload operation, reloading the confexts will be a no-op, + and a full service restart is required instead. See systemd.service5 also for details. diff --git a/man/systemd.service.xml b/man/systemd.service.xml index cea9384399d..8b9994a46ab 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1349,6 +1349,28 @@ + + RefreshOnReload= + + Takes a boolean argument, or a list of resources defined in + systemd.exec5. + Possible values are and , separated by space. + Prepending the list with a single tilde character (~) inverts the effect. + Defaults to . An empty assignment resets the list to default. If enabled, + the corresponding resources (/ + for and // + (along with their counterparts) + for ) will be refreshed on service reload. If , + all resources listed above that are used by the service shall be refreshed. + + Specially, if this option is set explicitly, and the respective resources are in use, + the service may be reloaded without any actual reload mechanism ( + or ) for notifying the main process, in which case the reload + is considered complete immediately after refreshing. + + + + Check