Don't need --force option to disable SGE queue
Before restarting SGE service, "--force" will only prevent SGE to be re-enabled after unwanted reboots…
This commit is contained in:
parent
0b0f678837
commit
87b26d6c6d
|
@ -555,12 +555,12 @@ main() { # {{{
|
||||||
if [ "${CHECK_PROCESS}" -eq "0" ]; then
|
if [ "${CHECK_PROCESS}" -eq "0" ]; then
|
||||||
|
|
||||||
## If nothing related to SGE is currently running {{{
|
## 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
|
### Wait few seconds
|
||||||
### Try to start the SGE execd systemd service
|
### Try to start the SGE execd systemd service
|
||||||
### Wait few seconds
|
### Wait few seconds
|
||||||
is_proc_absent "${sge_proc_pattern}" \
|
is_proc_absent "${sge_proc_pattern}" \
|
||||||
&& sh "${sge_disable_host_queue_script}" --force \
|
&& sh "${sge_disable_host_queue_script}" \
|
||||||
&& sleep "${sleep_delay}" \
|
&& sleep "${sleep_delay}" \
|
||||||
&& systemctl --quiet start sge_execd.service > /dev/null 2>&1 \
|
&& systemctl --quiet start sge_execd.service > /dev/null 2>&1 \
|
||||||
&& sleep "${sleep_delay}"
|
&& sleep "${sleep_delay}"
|
||||||
|
|
Loading…
Reference in New Issue