diff runXena.py @ 33:7ceb967147c3

start xena with no gui add library files
author jingchunzhu <jingchunzhu@gmail.com>
date Wed, 22 Jul 2015 13:24:44 -0700
parents 63b1ba1e3424
children a3fbe077a14c
line wrap: on
line diff
--- a/runXena.py	Tue Jul 21 23:01:26 2015 -0700
+++ b/runXena.py	Wed Jul 22 13:24:44 2015 -0700
@@ -12,6 +12,12 @@
 import traceback
 import xena_utils as xena
 
+dirname = os.path.dirname(os.path.abspath(sys.argv[0]))
+
+sys.path.insert(0, dirname + "/lockfile-0.10.2/")
+sys.path.insert(0, dirname + "/python-daemon-2.0.5/")
+
+
 #third party libs
 from daemon import runner
 from lockfile import LockTimeout
@@ -34,7 +40,7 @@
         while True:
             #Main code goes here ...
             #Note that logger level needs to be set to logging.DEBUG before this shows up in the logs
-            xenaCmdline = "java -jar %s -r %s/files -d %s/db -t %s/tmp --logfile %s/xena.log -p %s -H 0.0.0.0" 
+            xenaCmdline = "java -jar %s -r %s/files -d %s/db -t %s/tmp --no-gui --logfile %s/xena.log -p %s -H 0.0.0.0" 
             xenaBaseDir = xena.baseDir()
             xenaCmd = xenaCmdline % (xena.jarPath(), xenaBaseDir, 
                                      xenaBaseDir, xenaBaseDir,