so-playbook-sync pgrep should be more strict to avoid multiple matches on Ubuntu

This commit is contained in:
Doug Burks
2022-04-20 16:48:26 -04:00
committed by GitHub
parent 8fc03afdc0
commit 1edb443c5d

View File

@@ -18,7 +18,7 @@
. /usr/sbin/so-common
# Check to see if we are already running
NUM_RUNNING=$(pgrep -cf "so-playbook-sync")
NUM_RUNNING=$(pgrep -cf "/bin/bash /usr/sbin/so-playbook-sync")
[ "$NUM_RUNNING" -gt 1 ] && echo "$(date) - $NUM_RUNNING Playbook sync processes running...exiting." && exit 0
docker exec so-soctopus python3 playbook_play-sync.py