Skip to content

Every unit created by runc need daemon reload since systemd v230 #35710

@wenjianhn

Description

@wenjianhn

systemd version the issue has been seen with

255.4-1ubuntu8.4

Used distribution

Ubuntu 24.04

Linux kernel version used

6.8.0-51-generic

CPU architectures issue was seen on

None

Component

systemd

Expected behaviour you didn't see

The unit should not need daemon reload.

Unexpected behaviour you saw

$ systemctl status docker-xxx.scope
Warning: The unit file, source configuration file or drop-ins of docker-xxx.scope changed on disk. Run 'systemctl daemon-reload' to reload units.

Steps to reproduce the problem

$ sudo systemd-run -u sleep-infinity.scope --scope sleep infinity
$ sudo systemctl set-property sleep-infinity.scope DevicePolicy=strict DeviceAllow="char-* m"

$ sudo systemctl show -P NeedDaemonReload sleep-infinity.scope
yes

Expected output:
no

Stop the unit.
$ sudo systemctl stop sleep-infinity.scope

Additional program output to the terminal or log subsystem illustrating the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingpid1

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions