Skip to content

CFE-4639: Removed conflicting --global flag from standard_services systemctl invocation#3134

Merged
larsewi merged 1 commit intocfengine:masterfrom
larsewi:CFE-4639-remove-global-flag
Apr 21, 2026
Merged

CFE-4639: Removed conflicting --global flag from standard_services systemctl invocation#3134
larsewi merged 1 commit intocfengine:masterfrom
larsewi:CFE-4639-remove-global-flag

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented Apr 20, 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 to:

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>
@larsewi
Copy link
Copy Markdown
Contributor Author

larsewi commented Apr 20, 2026

@cf-bottom Jenkins please :)

@cf-bottom
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man, that's been wrong in there for some time now, new logging introduced?

@larsewi larsewi merged commit 58be59e into cfengine:master Apr 21, 2026
42 checks passed
@larsewi larsewi added the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Apr 21, 2026
@larsewi larsewi removed the cherry-pick? Fixes which may need to be cherry-picked to LTS branches label Apr 21, 2026
@larsewi larsewi deleted the CFE-4639-remove-global-flag 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.

3 participants