From df92c65cdebaf05b2c1ea0c9b70a88b8fbe526d9 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Mon, 10 Sep 2018 09:17:49 +0700 Subject: [PATCH] Fix for sysV systems --- alterator-service-functions/alterator-service-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alterator-service-functions/alterator-service-functions b/alterator-service-functions/alterator-service-functions index f49dc96..ad5bb9f 100644 --- a/alterator-service-functions/alterator-service-functions +++ b/alterator-service-functions/alterator-service-functions @@ -284,7 +284,7 @@ _service_control() { # Prefer systemctl over SysV if it is available relying # on its systemd-sysv-install script for SysV services. - if sd_avail; then + if sd_avail && sd_sysv_avail; then sd_service_control "$1" "$2" elif sysv_service_script_exists "$1"; then sysv_service_control "$1" "$2" -- 2.17.1