def start(self, *args, **kw):
        pid = None
        if os.path.exists(self.pidfile):
            with open(self.pidfile, 'r') as fp:
                pid = int(fp.read().strip())

        if pid:
            msg = 'pidfile (%s) exists. Daemon already running?\n'
            sys.stderr.write(msg % self.pidfile)
            sys.exit(1)

        self.daemonize()
        self.run(*args, **kw)
Returns an automatic namedtuple object.
dataset/ETHPy150Open sivy/pystatsd/pystatsd/daemon.py/Daemon.start--crossover with--dataset/ETHPy150Open Yelp/git-code-debt/testing/utilities/auto_namedtuple.py/auto_namedtuple