fixing Disk Full behavior -- invokes stop_core_services.sh

This commit is contained in:
Patrick McGuire
2021-12-01 10:33:04 -05:00
parent b3b29f8058
commit dc0f8aff5d
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -x
used="$(df -h / | tail -n1 | awk '{print $5}')"
if [ "${used//%}" -gt 95 ]; then
echo "Stopping Core Services"
/usr/local/bin/stop_core_services.sh
fi