From: <di...@us...> - 2003-08-31 09:18:59
|
Update of /cvsroot/freevo/freevo/src/www In directory sc8-pr-cvs1:/tmp/cvs-serv3182/www Modified Files: __init__.py Removed Files: webserver.py Log Message: Move webserver start script to helpers. Use 'freevo webserver start' and 'freevo webserver stop'. Index: __init__.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/www/__init__.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** __init__.py 29 May 2003 21:07:36 -0000 1.4 --- __init__.py 31 Aug 2003 09:18:41 -0000 1.5 *************** *** 5,10 **** import traceback - sys.path += ['./src/www','./src/tv'] - import plugin --- 5,8 ---- *************** *** 17,31 **** plugin.DaemonPlugin.__init__(self) self.pid = None ! ! try: ! self.pid = os.spawnlp(os.P_NOWAIT, './freevo', './freevo', 'execute', 'src/www/webserver.py') ! except: ! print 'Crash!' ! traceback.print_exc() ! sleep(1) ! def shutdown(self): # print 'WEBSERVER::shutdown: pid=%s' % self.pid print 'Stopping webserver plugin.' ! os.system('./runapp ./freevo stop webserver.py') --- 15,22 ---- plugin.DaemonPlugin.__init__(self) self.pid = None ! os.system('%s webserver start' % os.environ['FREEVO_SCRIPT']) def shutdown(self): # print 'WEBSERVER::shutdown: pid=%s' % self.pid print 'Stopping webserver plugin.' ! os.system('%s webserver stop' % os.environ['FREEVO_SCRIPT']) --- webserver.py DELETED --- |