thao test pm2
This commit is contained in:
6
monitor/cache/clearcache.sh
vendored
Normal file
6
monitor/cache/clearcache.sh
vendored
Normal 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
6
monitor/cache/restart_service.sh
vendored
Normal 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
|
||||
Reference in New Issue
Block a user