From f463c4615ba93e2ebe7eb12a2ebc13333ecaa016 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Wed, 24 Aug 2016 14:02:08 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/15305 Smoke: Gluster Build System Reviewed-by: Kaleb KEITHLEY Tested-by: Atin Mukherjee NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- extras/systemd/glustereventsd.service.in | 1 + 1 file changed, 1 insertion(+) (limited to 'extras') 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 -- cgit