#NEWLINE# def privilegedStartService( self ) : #NEWLINE# #INDENT# '\n        Start listening on the endpoint.\n        ' #NEWLINE# service . Service . privilegedStartService ( self ) #NEWLINE# self . _waitingForPort = self . endpoint . listen ( raisedNow . factory ) #NEWLINE# raisedNow = [ ] #NEWLINE# def handleIt( err ) : #NEWLINE# #INDENT# if self . _raiseSynchronously : #NEWLINE# #INDENT# raisedNow . append ( err ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not err . check ( CancelledError ) ) : #NEWLINE# #INDENT# log . err ( err ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . _waitingForPort . addErrback ( handleIt ) #NEWLINE# if raisedNow : #NEWLINE# #INDENT# raisedNow [ 0 ] . raiseException ( )