thao test pm2

This commit is contained in:
thaonguyen
2022-12-22 11:36:36 +07:00
commit b0aae1dbec
54 changed files with 818 additions and 0 deletions

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

@@ -0,0 +1,6 @@
#!/bin/bash
sync; echo 1 > /proc/sys/vm/drop_caches
time_begin=$(date)
echo "$time_begin : clearcache!!" >> /root/monitor/log/cache.txt
echo "************************************" >> /root/monitor/log/cache.txt
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