

def is_running(self):
    pid = self.read()
    if (not pid):
        return False
    cmdline = ('/proc/%s/cmdline' % pid)
    try:
        with open(cmdline, 'r') as f:
            exec_out = f.readline()
        return ((self.procname in exec_out) and ((not self.uuid) or (self.uuid in exec_out)))
    except IOError:
        return False

dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/daemon.py Pidfile.is_running/original