[omd-commits] OMD Git: omd: mod-gearman: fixed env

git version control git at mathias-kettner.de
Sat Apr 30 03:05:42 CEST 2011


Module:   omd
Branch:   master
Commit:   fb0691a4653ea354d93a6c323ebe4b03f1986ffd
URL:      http://omdistro.org/projects/omd/repository/revisions/fb0691a4653ea354d93a6c323ebe4b03f1986ffd

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Sat Apr 30 03:05:08 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Sat Apr 30 03:05:08 2011 +0200

mod-gearman: fixed env

---

 .../mod-gearman/skel/etc/init.d/gearman_worker     |    4 +++-
 packages/omd/skel/.profile                         |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/packages/mod-gearman/skel/etc/init.d/gearman_worker b/packages/mod-gearman/skel/etc/init.d/gearman_worker
index dec835b..22d3e41 100644
--- a/packages/mod-gearman/skel/etc/init.d/gearman_worker
+++ b/packages/mod-gearman/skel/etc/init.d/gearman_worker
@@ -12,7 +12,9 @@
 ### END INIT INFO
 
 # Check if Mod-Gearman is enabled in OMD. If not terminate.
-. etc/omd/site.conf
+cd ###ROOT###
+. ###ROOT###/.profile
+. ###ROOT###/etc/omd/site.conf
 if [ "$CONFIG_MOD_GEARMAN" != "on" -o "$CONFIG_GEARMAN_WORKER" != "on" ] ; then
     exit 5
 fi
diff --git a/packages/omd/skel/.profile b/packages/omd/skel/.profile
index 668354a..a377703 100644
--- a/packages/omd/skel/.profile
+++ b/packages/omd/skel/.profile
@@ -3,7 +3,7 @@ export OMD_SITE=###SITE###
 export OMD_ROOT=###ROOT###
 
 PATH=~/local/bin:~/bin:~/local/lib/perl5/bin:$PATH
-export LD_LIBRARY_PATH=~/local/lib:~/lib
+export LD_LIBRARY_PATH=$OMD_ROOT/local/lib:$OMD_ROOT/lib
 
 # enable local perl env
 perlarch=$(perl -e 'use Config; print $Config{archname}')



More information about the omd-commits mailing list