9 lines
292 B
Bash
9 lines
292 B
Bash
#!/bin/bash
|
|
sync; echo 1 > /proc/sys/vm/drop_caches
|
|
systemctl restart S905X_BI
|
|
time_begin=$(date)
|
|
echo "$time_begin : clearcache & Restart service S905X & reboot!!" >> /root/monitor/log/cache.txt
|
|
echo "************************************" >> /root/monitor/log/cache.txt
|
|
sleep 5
|
|
reboot
|
|
exit 0 |