Red Hat Bugzilla – Bug 1287135
systemd-run --scope is not cleaned up after process end
Last modified: 2016-08-08 07:19:59 EDT
Description of problem:
If you run a lot of systemd-run --scope /bin/true processes, you can see some scopes still in "running" state in systemctl -t scope.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. The easiest way is to run /CoreOS/systemd/Regression/scope-unit-stress-test
There are still scopes running even after /bin/true quits.
No scopes running.
I split test to 2 phases. One is spawning systemd-run from external script file (which contains for cycle) and another one is spawning it from inline for cycle.
It looks the same but this bug only is present in the "inline" phase, which is really weird. I will try to investigate this more.
I am not able to reproduce this anymore with the newest systemd.
Closing for now.