]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/socket-activate/socket-activate.c
systemd-activate: pass environment variables through
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Mar 2013 22:57:44 +0000 (18:57 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Mar 2013 02:55:24 +0000 (22:55 -0400)
commit5e65c93a433447b15180249166f7b3944c3e6156
tree04d6ed507edd82a42b4775662cf63bfb444d10da
parent0f59fe5171b5564fc6fb58f3281fbc259c45f7d0
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
src/activate/activate.c