<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Race condition on systemd-run --scope"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86520#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Race condition on systemd-run --scope"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86520">bug 86520</a>
from <span class="vcard"><a class="email" href="mailto:umut@tezduyar.com" title="Umut Tezduyar <umut@tezduyar.com>"> <span class="fn">Umut Tezduyar</span></a>
</span></b>
<pre>How to reproduce:
[root@axis-00408cc563e5 /mnt/flash/root]27929# cat stress
#!/bin/sh
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
systemd-run --scope /bin/true &
[root@axis-00408cc563e5 /mnt/flash/root]27929# ./stress
[root@axis-00408cc563e5 /mnt/flash/root]27929# Running as unit run-27947.scope.
Running as unit run-27946.scope.
Running as unit run-27945.scope.
Running as unit run-27948.scope.
Running as unit run-27952.scope.
Running as unit run-27950.scope.
Running as unit run-27951.scope.
Running as unit run-27949.scope.
[root@axis-00408cc563e5 /mnt/flash/root]27929# systemctl -t scope
UNIT LOAD ACTIVE SUB DESCRIPTION
run-27945.scope loaded active running /bin/true
run-27946.scope loaded active running /bin/true
run-27947.scope loaded active running /bin/true
run-27948.scope loaded active running /bin/true
run-27949.scope loaded active running /bin/true
run-27950.scope loaded active running /bin/true
run-27951.scope loaded active running /bin/true
run-27952.scope loaded active running /bin/true
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
8 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@axis-00408cc563e5 /mnt/flash/root]27929# systemctl status run-27945.scope
● run-27945.scope - /bin/true
Loaded: loaded (/run/systemd/system/run-27945.scope; static)
Drop-In: /run/systemd/system/run-27945.scope.d
└─50-Description.conf
Active: active (running) since Fri 2014-10-24 13:13:26 GMT; 15s ago</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>