]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/cgroup: allow to set cgroup path for frozen unit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Aug 2025 01:38:53 +0000 (10:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Aug 2025 01:45:25 +0000 (10:45 +0900)
commitb39815ebf7d415cd99049c72c7164d599f967aee
treedff82d5221eb940132021997f856041a47644faa
parentc70816fd09a0e37732f48f204be282fda09918cf
core/cgroup: allow to set cgroup path for frozen unit

Otherwise, after 'systemctl daemon-reload' or 'daemon-reexec', frozen
units cannot gain cgroup paths and we cannot operate anything on them,
especially, we cannot thaw or stop them.
```
Aug 12 16:26:09 systemd[1]: wd.service: Job 1278 wd.service/stop finished, result=frozen
Aug 12 16:26:09 systemd[1]: Cannot stop frozen unit wd.service.
Aug 12 16:26:09 systemd[1]: wd.service: Cannot realize cgroup for frozen unit.
Aug 12 16:26:09 systemd[1]: Failed to realize cgroups for queued unit wd.service, ignoring: Device or resource busy
```

Follow-up for 23ac08115af83e3a0a937fa207fc52511aba2ffa.
src/core/cgroup.c