def start(self, *args, **kwargs):
<EOL>try:<EOL><INDENT>pf = file(self.pidfile, '<STR_LIT:r>')<EOL>pid = int(pf.read().strip())<EOL>pf.close()<EOL><DEDENT>except IOError:<EOL><INDENT>pid = None<EOL><DEDENT>if pid:<EOL><INDENT>message = "<STR_LIT>"<EOL>sys.stderr.write(message % self.pidfile)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>self.daemonize()<EOL>self.run(*args, **kwargs)<EOL>
Start the daemon