|
Zbigniew Jędrzejewski-Szmek |
96237b |
From 4c626a758f12c2e5862b185de8ae954e0bd795d7 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
Date: Wed, 5 Mar 2014 03:37:48 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
Subject: [PATCH] man: document missing options of systemd-run
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
(cherry picked from commit 981ee551945f4e00de52fcbb7780fd7476bcd47e)
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
---
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
man/systemd-run.xml | 71 ++++++++++++++++++++++++++++++++++++++++++++---------
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
1 file changed, 60 insertions(+), 11 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
diff --git a/man/systemd-run.xml b/man/systemd-run.xml
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
index 064195a..dc44186 100644
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
--- a/man/systemd-run.xml
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+++ b/man/systemd-run.xml
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
@@ -109,9 +109,9 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<term><option>--description=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- <listitem><para>Provide description for the unit. If not
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- specified, the command itself will be used as a description.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- See <varname>Description=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>Provide description for the service or scope
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ unit. If not specified, the command itself will be used as a
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ description. See <varname>Description=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
@@ -128,10 +128,10 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<term><option>--remain-after-exit</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- <listitem><para>After the service's process has terminated, keep
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- the service around until it is explicitly stopped. This is
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- useful to collect runtime information about the service after
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- it finished running. Also see
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>After the service or scope process has
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ terminated, keep the service around until it is explicitly
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ stopped. This is useful to collect runtime information about
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ the service after it finished running. Also see
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<varname>RemainAfterExit=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
@@ -141,15 +141,64 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<term><option>--send-sighup</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- <listitem><para>When terminating the scope unit, send a SIGHUP
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- immediately after SIGTERM. This is useful to indicate to
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- shells and shell-like processes that the connection has been
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
- severed. Also see <varname>SendSIGHUP=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>When terminating the scope or service unit,
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ send a SIGHUP immediately after SIGTERM. This is useful to
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ indicate to shells and shell-like processes that the
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ connection has been severed. Also see
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varname>SendSIGHUP=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<citerefentry><refentrytitle>systemd.kill</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
</varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <term><option>--service-type=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>Sets the service type. Also see
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varname>Type=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ option has no effect in conjunction with
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <option>--scope</option>. Defaults to
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <constant>simple</constant>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <term><option>--uid=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <term><option>--gid=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>Runs the service process under the UNIX user
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ and group. Also see <varname>User=</varname> and
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varname>Group=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ option has no effect in conjunction with
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <option>--scope</option>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <term><option>--nice=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>Runs the service process with the specified
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ nice level. Also see <varname>Nice=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ option has no effect in conjunction with
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <option>--scope</option>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <term><option>--setenv=</option></term>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <listitem><para>Runs the service process with the specified
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ environment variables set. Also see
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <varname>Environment=</varname> in
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>. This
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ option has no effect in conjunction with
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ <option>--scope</option>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
+
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<xi:include href="user-system-options.xml" xpointer="user" />
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<xi:include href="user-system-options.xml" xpointer="system" />
|
|
Zbigniew Jędrzejewski-Szmek |
96237b |
<xi:include href="user-system-options.xml" xpointer="host" />
|