]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - man/systemd-notify.xml
build(deps): bump redhat-plumbers-in-action/differential-shellcheck
[thirdparty/systemd.git] / man / systemd-notify.xml
index 1b469fe85c4a9a628130cd3e53ac2202768a874d..55bb8c59cf3ddadb4339da35128fcfae6014a66c 100644 (file)
@@ -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-notify"
 
   <refsynopsisdiv>
     <cmdsynopsis>
-      <command>systemd-notify <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">VARIABLE=VALUE</arg></command>
+      <command>systemd-notify</command> <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">VARIABLE=VALUE</arg>
     </cmdsynopsis>
     <cmdsynopsis>
-      <command>systemd-notify --exec <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">VARIABLE=VALUE</arg> ; <arg rep="repeat">CMDLINE</arg></command>
+      <command>systemd-notify</command> <arg>--exec</arg> <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">VARIABLE=VALUE</arg> <arg>;</arg> <arg rep="repeat">CMDLINE</arg>
     </cmdsynopsis>
   </refsynopsisdiv>
 
         cycle. This is equivalent to <command>systemd-notify RELOADING=1</command> (but implicitly also sets
         a <varname>MONOTONIC_USEC=</varname> field as required for <varname>Type=notify-reload</varname>
         services, see
-        <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+        <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
         for details). For details about the semantics of this option see
-        <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></listitem>
+        <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
+
+        <xi:include href="version-info.xml" xpointer="v253"/></listitem>
       </varlistentry>
 
       <varlistentry>
         <listitem><para>Inform the invoking service manager about the beginning of the shutdown phase of the
         service. This is equivalent to <command>systemd-notify STOPPING=1</command>. For details about the
         semantics of this option see
-        <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></listitem>
+        <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
+
+        <xi:include href="version-info.xml" xpointer="v253"/></listitem>
       </varlistentry>
 
       <varlistentry>
         <term><option>--pid=</option></term>
 
-        <listitem><para>Inform the service manager about the main PID of the service. Takes a PID as
-        argument. If the argument is specified as <literal>auto</literal> or omitted, the PID of the process
-        that invoked <command>systemd-notify</command> is used, except if that's the service manager. If the
+        <listitem><para>Inform the service manager about the main PID of the service. Takes a PID as argument.
+        If the argument is specified as <literal>auto</literal> or omitted, the PID of the process that
+        invoked <command>systemd-notify</command> is used, except if that's the service manager. If the
         argument is specified as <literal>self</literal>, the PID of the <command>systemd-notify</command>
         command itself is used, and if <literal>parent</literal> is specified the calling process' PID is
-        used — even if it is the service manager. The latter is equivalent to <command>systemd-notify
+        used — even if it is the service manager. <option>--pid=auto</option> is equivalent to <command>systemd-notify
         MAINPID=$PID</command>. For details about the semantics of this option see
         <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
 
       </varlistentry>
 
       <varlistentry>
-        <term><option>--uid=</option><replaceable>USER</replaceable></term>
+        <term><option>--uid=<replaceable>USER</replaceable></option></term>
 
         <listitem><para>Set the user ID to send the notification from. Takes a UNIX user name or numeric UID. When
         specified the notification message will be sent with the specified UID as sender, in place of the user the
         command was invoked as. This option requires sufficient privileges in order to be able manipulate the user
-        identity of the process.</para></listitem>
+        identity of the process.</para>
+
+        <xi:include href="version-info.xml" xpointer="v237"/></listitem>
       </varlistentry>
 
       <varlistentry>
         is only recommended when <command>systemd-notify</command> is spawned by the service manager, or when
         the invoking process is directly spawned by the service manager and has enough privileges to allow
         <command>systemd-notify</command> to send the notification on its behalf. Sending notifications with
-        this option set is prone to race conditions in all other cases.</para></listitem>
+        this option set is prone to race conditions in all other cases.</para>
+
+        <xi:include href="version-info.xml" xpointer="v246"/></listitem>
       </varlistentry>
 
       <varlistentry>
 
         <para>Note that many shells interpret <literal>;</literal> as their own separator for command lines,
         hence when <command>systemd-notify</command> is invoked from a shell the semicolon must usually be
-        escaped as <literal>\;</literal>.</para></listitem>
+        escaped as <literal>\;</literal>.</para>
+
+        <xi:include href="version-info.xml" xpointer="v254"/></listitem>
       </varlistentry>
 
       <varlistentry>
         invoked. This option may be used multiple times to pass multiple file descriptors in a single
         notification message.</para>
 
-        <para>To use this functionality from a <command>bash</command> shell, use an expression like the following:</para>
-        <programlisting>systemd-notify --fd=4 --fd=5 4&lt;/some/file 5&lt;/some/other/file</programlisting></listitem>
+        <para>To use this functionality from a
+        <citerefentry project='man-pages'><refentrytitle>bash</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+        shell, use an expression like the following:</para>
+        <programlisting>systemd-notify --fd=4 --fd=5 4&lt;/some/file 5&lt;/some/other/file</programlisting>
+
+        <xi:include href="version-info.xml" xpointer="v254"/></listitem>
       </varlistentry>
 
       <varlistentry>
         <listitem><para>Set a name to assign to the file descriptors passed via <option>--fd=</option> (see
         above). This controls the <literal>FDNAME=</literal> field. This setting may only be specified once,
         and applies to all file descriptors passed. Invoke this tool multiple times in case multiple file
-        descriptors with different file descriptor names shall be submitted.</para></listitem>
+        descriptors with different file descriptor names shall be submitted.</para>
+
+        <xi:include href="version-info.xml" xpointer="v254"/></listitem>
       </varlistentry>
 
       <xi:include href="standard-options.xml" xpointer="help" />
@@ -254,13 +270,13 @@ done</programlisting>
 
   <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.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>sd_booted</refentrytitle><manvolnum>3</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.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
+      <member><citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry></member>
+      <member><citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>
+      <member><citerefentry><refentrytitle>sd_booted</refentrytitle><manvolnum>3</manvolnum></citerefentry></member>
+    </simplelist></para>
   </refsect1>
 </refentry>