From 944817732b54eb640bab941d1f87da066de1178d Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Mon, 25 Jan 2021 15:22:04 -0500 Subject: [PATCH] grep for the scrip to be running https://github.com/Security-Onion-Solutions/securityonion/issues/2722 --- salt/common/tools/sbin/so-sensor-clean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-sensor-clean b/salt/common/tools/sbin/so-sensor-clean index a7aa64d99..63f102f0c 100755 --- a/salt/common/tools/sbin/so-sensor-clean +++ b/salt/common/tools/sbin/so-sensor-clean @@ -115,7 +115,7 @@ clean() { } # Check to see if we are already running -IS_RUNNING=$(ps aux | grep "sensor_clean" | grep -v grep | wc -l) +IS_RUNNING=$(ps aux | grep "so-sensor-clean" | grep -v grep | wc -l) [ "$IS_RUNNING" -gt 2 ] && echo "$(date) - $IS_RUNNING sensor clean script processes running...exiting." >>$LOG && exit 0 if [ "$CUR_USAGE" -gt "$CRIT_DISK_USAGE" ]; then