Skip to content
Snippets Groups Projects
Commit a09bffa5 authored by Matthieu Hautreux's avatar Matthieu Hautreux Committed by Morris Jette
Browse files

slurm init script : bug correction in stop target error code mgmt

In current version of slurm initscript, a stop action returns a
non null exit code as slurmstatus exit code is directly used and
the daemons are stopped.
Ensure that when called from slurmstop, slurmstatus error code is
reversed to correctly match the attended error code of the stop
stage.
parent b4191579
No related branches found
No related tags found
No related merge requests found
...@@ -223,6 +223,15 @@ slurmstop() { ...@@ -223,6 +223,15 @@ slurmstop() {
fi fi
done done
done done
# slurmstatus return 1 in case of stopped daemon
# and that is what we are looking for here
if [[ ${RETVAL} == "1" ]]
then
RETVAL=0
else
RETVAL=1
fi
} }
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment