def start(self):
        '''
        Start the daemon
        '''
        # Check for a pidfile to see if the daemon already runs
        try:
            pidf = file(self.pidfile, 'r')
            pid = int(pidf.read().strip())
            pidf.close()
        except __HOLE__:
            pid = None

        if pid:
            sys.stderr.write("pidfile {0} already exists.\n".format(self.pidfile))
            sys.exit(1)

        # Start the daemon
        self.daemonize()
        self.run()
dataset/ETHPy150Open felskrone/salt-eventsd/salteventsd/daemon.py/Daemon.start