core: enforce that scope units can be started only once

Scope units are populated from PIDs specified by the bus client. We do
that when a scope is started. We really shouldn't allow scopes to be
started multiple times, as the PIDs then might be heavily out of date.
Moreover, clients should have the guarantee that any scope they allocate
has a clear runtime cycle which is not repetitive.
This commit is contained in:
Lennart Poettering
2018-04-27 21:52:45 +02:00
parent d1a1f0aaf0
commit d4fd1cf208
6 changed files with 34 additions and 11 deletions
+1
View File
@@ -587,6 +587,7 @@ const UnitVTable scope_vtable = {
.can_transient = true,
.can_delegate = true,
.once_only = true,
.init = scope_init,
.load = scope_load,