#NEWLINE# def start( self ) : #NEWLINE# #INDENT# "\n        Start the actual proxy minion.\n\n        If sub-classed, don't **ever** forget to run:\n\n            super(YourSubClass, self).start()\n\n        NOTE: Run any required code before calling `super()`.\n        " #NEWLINE# super ( ProxyMinion , self ) . start ( ) #NEWLINE# try : #NEWLINE# #INDENT# if check_user ( self . config [ 'user' ] ) : #NEWLINE# #INDENT# log . info ( 'The proxy minion is starting up' ) #NEWLINE# self . verify_hash_type ( ) #NEWLINE# self . action_log_info ( 'Starting up' ) #NEWLINE# self . minion . tune_in ( ) #NEWLINE# #UNINDENT# #UNINDENT# except ( KeyboardInterrupt , SaltSystemExit ) as exc : #NEWLINE# #INDENT# self . action_log_info ( 'Stopping' ) #NEWLINE# if isinstance ( exc , KeyboardInterrupt ) : #NEWLINE# #INDENT# log . warning ( 'Exiting on Ctrl-c' ) #NEWLINE# self . shutdown ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . error ( str ( self ) ) #NEWLINE# self . shutdown ( exc . code )