diff options
author | Aravinda VK <avishwan@redhat.com> | 2016-08-24 14:02:08 +0530 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2016-08-29 00:28:30 -0700 |
commit | f463c4615ba93e2ebe7eb12a2ebc13333ecaa016 (patch) | |
tree | 020ab58451c7d0a972196c36ec3f9dc934720504 /extras/systemd | |
parent | 62f4e41e9eafd2838d2a11989f08b0e7627284b4 (diff) |
packaging/eventsapi: Make Python site-packages variable global
Python site-packages path is assigned when glupy is enabled.
Eventsapi will not work as expected if glupy is disabled using
./configure --disable-glupy.
With this patch, all the Python variables are moved out of glupy
and used inside it.
systemd services will fail if we import gluster.cliutils python library
which is installed in /usr/local/lib/python.2.7/site-packages or some
other location. With this patch, Environment variable is added in
systemd service file.
BUG: 1369721
Change-Id: I9416240f03889e3bbcb4cd375e27c784fa9ca277
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/15305
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Atin Mukherjee <amukherj@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'extras/systemd')
-rw-r--r-- | extras/systemd/glustereventsd.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/systemd/glustereventsd.service.in b/extras/systemd/glustereventsd.service.in index 2be3f25ac18..75cca16128f 100644 --- a/extras/systemd/glustereventsd.service.in +++ b/extras/systemd/glustereventsd.service.in @@ -3,6 +3,7 @@ Description=Gluster Events Notifier After=syslog.target network.target [Service] +Environment=PYTHONPATH=@BUILD_PYTHON_SITE_PACKAGES_EXPANDED@:$PYTHONPATH Type=simple ExecStart=@SBIN_DIR@/glustereventsd ExecReload=/bin/kill -SIGUSR2 $MAINPID |