DaemonGroup: Don't use systemd with valgrind
@@ -55,6 +55,9 @@ class DaemonGroup(object):
self.daemons[role][id_] = None
klass = DaemonState
if remote.init_system == 'systemd':
+ # We currently cannot use systemd and valgrind together because
+ # it would require rewriting the unit files
+ if not any(map(lambda i: i == 'valgrind', args)):
klass = SystemDState
self.daemons[role][id_] = klass(
remote, role, id_, *args, **kwargs)
