mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Chris Down](/assets/img/avatar_default.png)
systemd only uses functions that are as of Linux 4.15+ provided externally to the CPU controller (currently usage_usec), so if we have a new enough kernel, we don't need to set CGROUP_MASK_CPU for CPUAccounting=true as the CPU controller does not need to necessarily be enabled in this case. Part of this patch is modelled on an earlier patch by Ryutaroh Matsumoto (see PR #9665).
9 lines
118 B
Desktop File
9 lines
118 B
Desktop File
[Unit]
|
|
Description=Daughter Service
|
|
|
|
[Service]
|
|
Slice=parent.slice
|
|
Type=oneshot
|
|
ExecStart=/bin/true
|
|
CPUAccounting=true
|