fixing Disk Full behavior -- invokes stop_core_services.sh
This commit is contained in:
Executable
+8
@@ -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
|
||||
@@ -1,4 +1,6 @@
|
||||
#birdnet
|
||||
*/5 * * * * /usr/local/bin/disk_check.sh &> /dev/null
|
||||
#birdnet
|
||||
*/3 * * * * /usr/local/bin/cleanup.sh &> /dev/null
|
||||
#birdnet
|
||||
@reboot /usr/local/bin/cleanup.sh &> /dev/null
|
||||
|
||||
Reference in New Issue
Block a user