diff --git base/univention-config-registry/python/univention/service_info.py base/univention-config-registry/python/univention/service_info.py index 5bf8fb6e0c..ee8dedc8ac 100644 --- base/univention-config-registry/python/univention/service_info.py +++ base/univention-config-registry/python/univention/service_info.py @@ -166,11 +166,11 @@ def pidof(name, docker='/var/run/docker.pid'): stat = os.path.join('/proc', proc, 'stat') try: with open(stat, 'r') as fd: - status = fd.read() - ppid = int(status.split()[3], 10) + status = fd.readline() + ppid = int(status.split(')', 1)[-1].split()[1], 10) children.setdefault(ppid, []).append(pid) except (EnvironmentError, ValueError) as ex: - log.error('Failed getting parent: %s', ex) + log.error('Failed getting parent: %s: %r', ex, status) def _running(): yield cmd == [link]