[Bug 1218551] New: systemd: Unable to override ConditionACPower=true
https://bugzilla.suse.com/show_bug.cgi?id=1218551 Bug ID: 1218551 Summary: systemd: Unable to override ConditionACPower=true Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: 0xdopice@protonmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- If a unit has ConditionACPower=true set, it's not possible to override the setting with ConditionACPower=false. Reproduce: 1. Create /usr/lib/systemd/system/testing123.service with content [Unit] Description=Testing ConditionACPower=true Wants=network.target After=network.target [Service] Type=oneshot ExecStart=/usr/bin/echo 'I am running' 2. Run 'systemctl daemon-reload' 3. Create override file with 'systemctl edit testing123.service' with content [Unit] ConditionACPower=false 4. Run 'systemctl daemon-reload' 5. Follow the journal output with 'journalctl -fu testing123.service' 6. Start the service with 'systemctl start testing123.service' 7. The journal shows "...was skipped because of an unmet condition check (ConditionACPower=true)" In my testing, I reversed the scenario so the testing123.service had ConditionACPower=false and the override file ConditionACPower=true. That scenario works just fine. But not when you want to disable it if it's enabled. All this is tested with systemd-254.5-8.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com