QuecManager BETA 1.0.3
-UI hotfixes -Postrm fix Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
This commit is contained in:
@@ -7,12 +7,24 @@ sed -i '/\/www\/cgi-bin\/home\/log_signal_metrics\.sh &/d' /etc/rc.local
|
||||
|
||||
|
||||
# Check if log_signal_metrics.sh is running and kill it
|
||||
if pgrep -f "/www/cgi-bin/home/log_signal_metrics.sh" > /dev/null; then
|
||||
echo "Stopping log_signal_metrics.sh..."
|
||||
pkill -f "/www/cgi-bin/home/log_signal_metrics.sh"
|
||||
|
||||
PID=$(pgrep -f "/www/cgi-bin/home/log_signal_metrics.sh")
|
||||
|
||||
if [ -n "$PID" ]; then
|
||||
echo "Stopping log_signal_metrics.sh (PID: $PID)..."
|
||||
|
||||
# Kill the process
|
||||
kill -TERM "$PID"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Successfully stopped log_signal_metrics.sh."
|
||||
else
|
||||
echo "Failed to stop log_signal_metrics.sh."
|
||||
fi
|
||||
else
|
||||
echo "log_signal_metrics.sh is not running. Nothing to stop."
|
||||
fi
|
||||
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user