Skip to content

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

Merged
larsewi merged 1 commit intocfengine:3.27.xfrom
larsewi:CFE-4639-remove-global-flag-3.27.x
Apr 24, 2026
Merged

CFE-4639: Removed conflicting --global flag from standard_services systemctl invocation (3.27.x)#3138
larsewi merged 1 commit intocfengine:3.27.xfrom
larsewi:CFE-4639-remove-global-flag-3.27.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

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)
@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
@cf-bottom
Copy link
Copy Markdown

@larsewi larsewi merged commit c341f2d into cfengine:3.27.x Apr 24, 2026
44 of 45 checks passed
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.

2 participants