Ths a script to prevent reaching the disk limit and the data base corruption:
#alertsize.sh
*/5 * * * * date >> /tmp/mylog ; $HOME/alertsize.sh >> /tmp/mylog
>cat alertsize.sh
#! /bin/sh
#sizedisk=`du -sh`
sizedisk=`du | tail -1 | awk '{print $ 1}'`
echo "The used size of the disk is: $sizedisk"
if [ $sizedisk -gt 9215390 ]
# if the account disk occupation is greater than 9G
then
$HOME/slev5/bin/stopslev5
echo "stopping the SLEV5, preventing the crash"
fi
echo "--------------------------------------"
Écrire commentaire
gBqsPxAZ (mardi, 04 octobre 2022 15:33)
20
gBqsPxAZ (mardi, 04 octobre 2022 15:35)
20
gBqsPxAZ (mardi, 04 octobre 2022 15:35)
-5) OR 637=(SELECT 637 FROM PG_SLEEP(15))--
gBqsPxAZ (mardi, 04 octobre 2022 15:36)
20
gBqsPxAZ (mardi, 04 octobre 2022 15:36)
20
gBqsPxAZ (mardi, 04 octobre 2022 16:06)
20