Skip to content

CFE-4639: Removed conflicting --global flag from standard_services systemctl invocation (3.24.x)#3139

Merged
larsewi merged 2 commits intocfengine:3.24.xfrom
larsewi:CFE-4639-remove-global-flag-3.24.x
Apr 27, 2026
Merged

CFE-4639: Removed conflicting --global flag from standard_services systemctl invocation (3.24.x)#3139
larsewi merged 2 commits intocfengine:3.24.xfrom
larsewi:CFE-4639-remove-global-flag-3.24.x

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented Apr 21, 2026

Summary

The call_systemctl command in the systemd_services bundle passed both --global and --system to systemctl. These flags are mutually exclusive:

  • --global operates on the global user configuration (affects all users' systemd --user instances)
  • --system operates on the system manager

Passing both causes systemctl to fail with an error about conflicting options, breaking the default standard_services bundle.

Since standard_services manages system services, --system is the correct scope; --global has been removed.

Backported from #3134

@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Apr 21, 2026

@cf-bottom Jenkins please :)

@cf-bottom
Copy link
Copy Markdown

@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Apr 22, 2026

@cf-bottom Jenkins please :)

@cfengine cfengine deleted a comment from cf-bottom Apr 23, 2026
@cfengine cfengine deleted a comment from cf-bottom Apr 24, 2026
@cf-bottom
Copy link
Copy Markdown

larsewi and others added 2 commits April 24, 2026 12:54
The call_systemctl command in the systemd_services bundle passed both
--global and --system to systemctl. These flags are mutually exclusive:
--global operates on the global user configuration (affecting all users'
systemd --user instances), while --system operates on the system
manager. Passing both causes systemctl to fail with an error about
conflicting options, breaking the default standard_services bundle.

Since standard_services manages system services, --system is the
correct scope; --global has been removed.

Ticket: CFE-4639
Changelog: Title
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 052bb8e)
Added with the PR so that if it's not merged, the chagelog isn't stale with a
missing entry
@nickanderson nickanderson force-pushed the CFE-4639-remove-global-flag-3.24.x branch from 09bf947 to 9ba056e Compare April 24, 2026 17:56
@craigcomstock
Copy link
Copy Markdown
Contributor

@cf-bottom jenkins

@cf-bottom
Copy link
Copy Markdown

@larsewi larsewi merged commit ed46288 into cfengine:3.24.x Apr 27, 2026
44 of 45 checks passed
@larsewi larsewi deleted the CFE-4639-remove-global-flag-3.24.x branch April 27, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants