From b076de3c3a33a0358bd9fd1fd6e18a1912c6551c Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Mon, 20 Apr 2026 16:57:28 +0200 Subject: [PATCH] standard_services bundle now invokes systemctl without --global 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 (cherry picked from commit 052bb8e9aad8a8cab136b283be856a591681b953) --- lib/services.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services.cf b/lib/services.cf index b505b16924..d2876bfc1d 100644 --- a/lib/services.cf +++ b/lib/services.cf @@ -369,7 +369,7 @@ bundle agent systemd_services(service,state) vars: systemd:: "call_systemctl" - string => "$(paths.systemctl) --no-ask-password --global --system"; + string => "$(paths.systemctl) --no-ask-password --system"; "systemd_properties" string => "-pLoadState,CanStop,UnitFileState,ActiveState,LoadState,CanStart,CanReload";