<div dir="ltr">Hi,<div><br></div><div>I'm trying to leverage systemd-run to build a utility like GNU time. But I ran into some problems.</div><div><br></div><div>1. Behaviour on memory accounting isn't consistent, please see the issue on Github[1]. And I found that even if I add the property `MemoryAccouting` to the command, it won't help.</div><div>2. When the process exits, the corresponding cgroup is deleted. But the document[2] says: Simply watch for state changes until this state is reached, then read the status details from the various properties you need. So is the status here systemd provides? I think we can preserve the cgroup and delete it when the services/scope is killed, which can be much better.</div><div><br></div><div>I'm a beginner in systemd area, so if I have any mistakes, please point them out and let me know. Thanks.</div><div><br></div><div>[1] <a href="https://github.com/systemd/systemd/issues/33191">https://github.com/systemd/systemd/issues/33191</a></div><div>[2] <a href="https://systemd.io/CONTROL_GROUP_INTERFACE/">https://systemd.io/CONTROL_GROUP_INTERFACE/</a></div></div>