start.sh 266 B

123456789101112131415
  1. #!/bin/bash
  2. # 开启fd监控
  3. cd ./tooks/
  4. nohup watch -n 1 ./cheack_fd.sh &
  5. cd ../
  6. cd ./source/bin/
  7. while true
  8. do
  9. LD_PRELOAD=../../lib/libmyplugins.so ./main
  10. sleep 1
  11. date="`date '+%Y-%m-%d %H:%M:%S'`"
  12. echo "$date MIVA重启任务" >> MIVA.log
  13. done