コード例 #1
0
ファイル: Launch.py プロジェクト: akkmzack/RIOS-8.5
Launch.workDir = workDir
Launch.webwareDir = webwareDir
Launch.libraryDirs = libraryDirs
Launch.runProfile = runProfile
Launch.logFile = logFile
Launch.pidFile = pidFile
Launch.user = user
Launch.group = group

import RbtUtils

if not RbtUtils.isProduction():
    Logging.log(Logging.LOG_INFO, 'webasd is not production')

try:
    try:
        import wsm
        wsm.wsm().start()
    except Exception:
        Logging.log(Logging.LOG_ERR,
            'Global web connection to mgmtd failed.')
    else:
        # clean up temporary nodes that userconfig may leave behind
        import UserConfig
        from wsm import mgmt as globalMgmt
        UserConfig.cleanUp(globalMgmt)

        Launch.main(['ThreadedAppServer'])
finally:
    Logging.log(Logging.LOG_NOTICE, 'Appserver closing')
コード例 #2
0
#!/usr/bin/env python

import os
import sys

scriptName = sys.argv and sys.argv[0]
if not scriptName or scriptName == '-c':
    scriptName = 'Launch.py'
workDir = os.path.dirname(os.path.abspath(scriptName))
os.chdir(workDir)
webwareDir = os.path.join(os.pardir, os.pardir, os.pardir)
sys.path.insert(0, webwareDir)

from WebKit import Launch

Launch.webwareDir = webwareDir

if __name__ == '__main__':
    Launch.main()