kill any possible queued salt jobs before stopping salt-master

This commit is contained in:
m0duspwnens
2022-01-12 12:27:19 -05:00
parent 0388912ba7
commit 0cf877f169

View File

@@ -474,6 +474,9 @@ stop_salt_master() {
echo ""
echo "Killing all Salt jobs across the grid."
salt \* saltutil.kill_all_jobs
echo ""
echo "Killing any queued Salt jobs on the manager."
pkill -9 -ef "/usr/bin/python3 /bin/salt"
set -e
echo ""