from PyQt4.QtCore import *
from PyQt4.QtSql import *
from blur.Stone import *
from blur.Classes import *
import blur.email, blur.jabber
import sys, time, re
from math import ceil
try:
    import popen2
except:
    pass

if sys.argv.count('-daemonize'):
    from blur.daemonize import createDaemon
    createDaemon()

app = QCoreApplication(sys.argv)

initConfig("/etc/render_host_checker.ini",
           "/var/log/ab/render_host_checker.log")
# Read values from db.ini, but dont overwrite values from render_host_checker.ini
# This allows db.ini defaults to work even if render_host_checker.ini is non-existent
config().readFromFile("/etc/db.ini", False)

initStone(sys.argv)

blur.RedirectOutputToLog()

classes_loader()
예제 #2
0
from blur.Stone import *
from blur.Classes import *
import blur
import sys, time
from math import ceil
from blur.defaultdict import DefaultDict
from exceptions import Exception
import traceback

import signal
import cProfile
import lsprofcalltree

if sys.argv.count('-daemonize'):
    from blur.daemonize import createDaemon
    createDaemon()

managerConfig = '/etc/ab/manager.ini'
try:
    pos = sys.argv.index('-config')
    managerConfig = sys.argv[pos+1]
except: pass
dbConfig = '/etc/ab/db.ini'
try:
    pos = sys.argv.index('-dbconfig')
    dbConfig = sys.argv[pos+1]
except: pass
scheduler = None
try:
    pos = sys.argv.index('-scheduler')
    if pos > 0: