Update cache and setup folder

This commit is contained in:
2019-11-19 09:56:24 +07:00
parent dc5779959e
commit 2d1b2250e6
4 changed files with 16 additions and 11 deletions

View File

@@ -1,9 +1,6 @@
#!/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 "$time_begin : clearcache!!" >> /root/monitor/log/cache.txt
echo "************************************" >> /root/monitor/log/cache.txt
sleep 5
reboot
exit 0

6
monitor/cache/restart_service.sh vendored Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
time_begin=$(date)
echo "$time_begin : restart service!!" >> /root/monitor/log/cache.txt
systemctl restart S905X_BI
echo "************************************" >> /root/monitor/log/cache.txt
exit 0