Example #1
0
def main():
  drop_privileges(Config.USER)
  setupLogging()
  with PIDLockFile(Config.CONFIGDIR+"/node.pid"):
      jman=XMLJobManager()
      jman.registerPlugins()
      queue=Queue(jman)
      
      linkthread=Thread(target=linkschecker)
      linkthread.daemon=True
      linkthread.start()
      
      # remove old interrupted tasks
      jman.unfinishedToError()
      queue.run()