Site icon Learning & Doing

script auto free RAM jika penuh

#!/bin/bash

if [ `free -m | grep Mem | awk ‘{print $3}’` -ge 14000 ]
then
sync; echo 3 > /proc/sys/vm/drop_caches
/etc/init.d/pdns stop
fi

 

ket :

 

Exit mobile version