From 87b26d6c6dee5a4ea01bd3a82884af7e8567f3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 17 Aug 2022 17:22:37 +0200 Subject: [PATCH] Don't need --force option to disable SGE queue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before restarting SGE service, "--force" will only prevent SGE to be re-enabled after unwanted reboots… --- cluster/sge.enable.host.queue.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/sge.enable.host.queue.sh b/cluster/sge.enable.host.queue.sh index ecffbce..422496c 100755 --- a/cluster/sge.enable.host.queue.sh +++ b/cluster/sge.enable.host.queue.sh @@ -555,12 +555,12 @@ main() { # {{{ if [ "${CHECK_PROCESS}" -eq "0" ]; then ## If nothing related to SGE is currently running {{{ - ### First ensure that SGE queue(s) are really disable without creation of any flag file + ### First ensure that SGE queue(s) are really disable ### Wait few seconds ### Try to start the SGE execd systemd service ### Wait few seconds is_proc_absent "${sge_proc_pattern}" \ - && sh "${sge_disable_host_queue_script}" --force \ + && sh "${sge_disable_host_queue_script}" \ && sleep "${sleep_delay}" \ && systemctl --quiet start sge_execd.service > /dev/null 2>&1 \ && sleep "${sleep_delay}"