From ae18ee541140da4dbf8aab2651e26b94de6d9563 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 10 Oct 2023 08:36:57 +0100 Subject: [PATCH] services_cli: fix usage of `systemctl_args` with `--no-block`. These places were not changed correctly. --- lib/service/services_cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/services_cli.rb b/lib/service/services_cli.rb index 81e5ee89a7..016f8c409d 100644 --- a/lib/service/services_cli.rb +++ b/lib/service/services_cli.rb @@ -151,7 +151,7 @@ def stop(targets, verbose: false, no_wait: false) end if System.systemctl? - quiet_system(*System.systemctl_args, "disable", "--now", service.service_name) + quiet_system(*systemctl_args, "disable", "--now", service.service_name) elsif System.launchctl? quiet_system System.launchctl, "bootout", "#{System.domain_target}/#{service.service_name}" unless no_wait @@ -165,7 +165,7 @@ def stop(targets, verbose: false, no_wait: false) rm service.dest if service.dest.exist? # Run daemon-reload on systemctl to finish unloading stopped and deleted service. - safe_system(*System.systemctl_args, "daemon-reload") if System.systemctl? + safe_system(*systemctl_args, "daemon-reload") if System.systemctl? if service.pid? || service.loaded? opoo "Unable to stop `#{service.name}` (label: #{service.service_name})"