diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-08-22 13:37:13 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-08-24 09:54:45 +0200 |
commit | 6a6707ce8589fb5074a33ccbe6fdbd476e8b7021 (patch) | |
tree | dc2ef0b566c5f214fe32e7a0585b8fb1d6ba1b8b | |
parent | Merge pull request #24071 from bluca/path_trigger_report (diff) | |
download | systemd-6a6707ce8589fb5074a33ccbe6fdbd476e8b7021.tar.xz systemd-6a6707ce8589fb5074a33ccbe6fdbd476e8b7021.zip |
man/run: we accept relative paths for run
I think this is a left-over from before we changed ExecStart= to allow
non-absolute paths, *and* changed systemd-run itself to resolve paths too.
-rw-r--r-- | man/systemd-run.xml | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/man/systemd-run.xml b/man/systemd-run.xml index faf88d560a..5910565427 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -72,7 +72,7 @@ processes of the command are managed by the service manager similarly to normal services, and will show up in the output of <command>systemctl list-units</command>. Execution in this case is synchronous, and will return only when the command finishes. This mode is enabled via the <option>--scope</option> switch - (see below). </para> + (see below).</para> <para>If a command is run with path, socket, or timer options such as <option>--on-calendar=</option> (see below), a transient path, socket, or timer unit is created alongside the service unit for the specified command. Only the @@ -82,15 +82,16 @@ <filename>.path</filename>, <filename>.socket</filename>, or <filename>.timer</filename> unit that triggers the specified unit.</para> - <para>By default, services created with <command>systemd-run</command> default to the <option>simple</option> type, - see the description of <varname>Type=</varname> in + <para>By default, services created with <command>systemd-run</command> default to the + <option>simple</option> type, see the description of <varname>Type=</varname> in <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry> for - details. Note that when this type is used the service manager (and thus the <command>systemd-run</command> command) - considers service start-up successful as soon as the <function>fork()</function> for the main service process - succeeded, i.e. before the <function>execve()</function> is invoked, and thus even if the specified command cannot - be started. Consider using the <option>exec</option> service type (i.e. <option>--property=Type=exec</option>) to - ensure that <command>systemd-run</command> returns successfully only if the specified command line has been - successfully started.</para> + details. Note that when this type is used, the service manager (and thus the + <command>systemd-run</command> command) considers service start-up successful as soon as the + <function>fork()</function> for the main service process succeeded, i.e. before the + <function>execve()</function> is invoked, and thus even if the specified command cannot be started. + Consider using the <option>exec</option> service type (i.e. <option>--property=Type=exec</option>) to + ensure that <command>systemd-run</command> returns successfully only if the specified command line has + been successfully started.</para> </refsect1> <refsect1> @@ -411,10 +412,8 @@ <xi:include href="standard-options.xml" xpointer="version" /> </variablelist> - <para>All command line arguments after the first non-option - argument become part of the command line of the launched - process. If a command is run as service unit, the first argument - needs to be an absolute program path.</para> + <para>All command line arguments after the first non-option argument become part of the command line of + the launched process.</para> </refsect1> <refsect1> |