#NEWLINE# def Init( ) : #NEWLINE# #INDENT# 'Run all required startup routines and initialization hooks.' #NEWLINE# global INIT_RAN #NEWLINE# if INIT_RAN : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# stats . STATS = stats . StatsCollector ( ) #NEWLINE# syslog_logger = logging . getLogger ( 'TempLogger' ) #NEWLINE# if os . path . exists ( '/dev/log' ) : #NEWLINE# #INDENT# handler = logging . handlers . SysLogHandler ( address = '/dev/log' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# handler = logging . handlers . SysLogHandler ( ) #NEWLINE# #UNINDENT# syslog_logger . addHandler ( handler ) #NEWLINE# try : #NEWLINE# #INDENT# AddConfigContext ( ) #NEWLINE# ConfigInit ( ) #NEWLINE# #UNINDENT# except config_lib . Error : #NEWLINE# #INDENT# syslog_logger . exception ( 'Died during config initialization' ) #NEWLINE# raise #NEWLINE# #UNINDENT# ServerLoggingStartupInit ( ) #NEWLINE# registry . Init ( ) #NEWLINE# INIT_RAN = True