def run(self):
<EOL>try:<EOL><INDENT>with self.pidfile:<EOL><INDENT>return self._main()<EOL><DEDENT><DEDENT>except pidfile.PidFileError:<EOL><INDENT>self.log.error("<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>finally:<EOL><INDENT>for mod in self.joins:<EOL><INDENT>self.log.debug("<STR_LIT>", mod.name)<EOL>mod.on_stop()<EOL><DEDENT><DEDENT>
run daemon