summaryrefslogtreecommitdiffstats
path: root/encap/src
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-12 04:08:49 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-12 04:08:49 +0000
commit2e2acf6fd1e61c6a8bc505fbd336296d95b3c021 (patch)
treeb1323fea2919ff7d48c2121b183ea8095f671f63 /encap/src
parent6704563be65de7acb4ad0f899185dbcbe4b9404e (diff)
downloadbcfg2-2e2acf6fd1e61c6a8bc505fbd336296d95b3c021.tar.gz
bcfg2-2e2acf6fd1e61c6a8bc505fbd336296d95b3c021.tar.bz2
bcfg2-2e2acf6fd1e61c6a8bc505fbd336296d95b3c021.zip
For some reason Redhat 6.0 needs PYTHONPATH when kicked off via runit, and also hangs on accessing the RPM db for about 1-3 minutes when kicked off via runit. When bcfg2 is run from the command line it runs without any problems. Weird. In any case setting PYTHONPATH in bcfg2-client.sh shouldn't hurt any other platforms, so putting it in.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3435 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src')
-rw-r--r--encap/src/encap-profiles/bcfg2-0.9.4f.ep2
1 files changed, 2 insertions, 0 deletions
diff --git a/encap/src/encap-profiles/bcfg2-0.9.4f.ep b/encap/src/encap-profiles/bcfg2-0.9.4f.ep
index d7f5292a4..090b4c4c2 100644
--- a/encap/src/encap-profiles/bcfg2-0.9.4f.ep
+++ b/encap/src/encap-profiles/bcfg2-0.9.4f.ep
@@ -391,6 +391,8 @@ exit 0
# /usr/local/etc/default/bcfg2-client/env/RUN_INTERVAL_SECONDS
ENVDIR="/usr/local/etc/default/bcfg2-client/env"
+PYTHONPATH="/usr/local/lib/bcfg2/lib/python2.4:/usr/local/lib/bcfg2/lib/python2.4/site-packages:/usr/local/lib/bcfg2/lib/python2.4/site-packages/Bcfg2"
+export ENVDIR PYTHONPATH
# make sure we have options
if [ ! -f ${ENVDIR}/OPTIONS ]; then