change pgrep for salt-minion PID

This commit is contained in:
m0duspwnens
2023-08-02 12:54:31 -04:00
parent 5630b353c4
commit 9873121000

View File

@@ -455,7 +455,7 @@ stop_salt_minion() {
set -e
echo "Storing salt-minion pid."
MINIONPID=$(pgrep salt-minion | head -1)
MINIONPID=$(pgrep -f '/opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion' | head -1)
echo "Found salt-minion PID $MINIONPID"
systemctl_func "stop" "salt-minion"