summaryrefslogtreecommitdiff
path: root/man/systemd-activate.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-15 18:57:44 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-15 22:55:24 -0400
commit5e65c93a433447b15180249166f7b3944c3e6156 (patch)
tree04d6ed507edd82a42b4775662cf63bfb444d10da /man/systemd-activate.xml
parent0f59fe5171b5564fc6fb58f3281fbc259c45f7d0 (diff)
systemd-activate: pass environment variables through
I need this to test half-installed socket-activated python script, which requires PYTHONPATH and LD_LIBRARY_PATH set. I assume that other people might find it useful to. -E VAR passes through VAR from the environment, while -E VAR=value sets VAR=value. systemd-activate -E PYTHONPATH=/var/tmp/inst1/usr/lib64/python3.3/site-packages -E LD_LIBRARY_PATH=/var/tmp/inst1/usr/lib -l 2000 python3 -c 'from systemd.daemon import listen_fds; print(listen_fds())'
Diffstat (limited to 'man/systemd-activate.xml')
-rw-r--r--man/systemd-activate.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/man/systemd-activate.xml b/man/systemd-activate.xml
index a5cab8e3b7..b62cf44ec4 100644
--- a/man/systemd-activate.xml
+++ b/man/systemd-activate.xml
@@ -99,7 +99,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
</varlistentry>
<varlistentry>
- <term><option>-l</option></term>
+ <term><option>-l <replaceable>address</replaceable></option></term>
<term><option>--listen=<replaceable>address</replaceable></option></term>
<listitem><para>Listen on this <replaceable>address</replaceable>.
@@ -116,6 +116,18 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
connection and pass the connection socket as standard input
and standard output.</para></listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><option>-E <replaceable>VAR</replaceable><optional>=<replaceable>VALUE</replaceable></optional></option></term>
+ <term><option>--environment=<replaceable>VAR</replaceable><optional>=<replaceable>VALUE</replaceable></optional></option></term>
+
+ <listitem><para>Add this variable to the environment of the
+ launched process. If <replaceable>VAR</replaceable> is
+ followed by <literal>=</literal> assume that it is a
+ variable–value pair. Otherwise obtain the value from the
+ environment of <command>systemd-activate</command> itself.
+ </para></listitem>
+ </varlistentry>
</variablelist>
</refsect1>