From 5e65c93a433447b15180249166f7b3944c3e6156 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 15 Mar 2013 18:57:44 -0400 Subject: 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())' --- man/systemd-activate.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'man/systemd-activate.xml') 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 . - + Listen on this address. @@ -116,6 +116,18 @@ along with systemd; If not, see . connection and pass the connection socket as standard input and standard output. + + + + + + Add this variable to the environment of the + launched process. If VAR is + followed by = assume that it is a + variable–value pair. Otherwise obtain the value from the + environment of systemd-activate itself. + + -- cgit v1.2.3-54-g00ecf