mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
FIX: Prevent multiple instances of so-playbook-sync #6622
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
. /usr/sbin/so-common
|
. /usr/sbin/so-common
|
||||||
|
|
||||||
# Check to see if we are already running
|
# Check to see if we are already running
|
||||||
IS_RUNNING=$(ps aux | pgrep -f "so-playbook-sync" | wc -l)
|
NUM_RUNNING=$(pgrep -cf "so-playbook-sync")
|
||||||
[ "$IS_RUNNING" -gt 3 ] && echo "$(date) - Multiple Playbook Sync processes already running...exiting." && exit 0
|
[ "$NUM_RUNNING" -gt 1 ] && echo "$(date) - $NUM_RUNNING Playbook sync processes running...exiting." && exit 0
|
||||||
|
|
||||||
docker exec so-soctopus python3 playbook_play-sync.py
|
docker exec so-soctopus python3 playbook_play-sync.py
|
||||||
|
|||||||
Reference in New Issue
Block a user