stop-dendrite.sh 686 B

12345678910111213141516
  1. #!/bin/sh
  2. kill -9 `cat /mnt/data/logs/cache-loader.pid`
  3. kill -9 `cat /mnt/data/logs/front-server.pid`
  4. sleep 3
  5. kill -9 `cat /mnt/data/logs/sync-server.pid`
  6. sleep 3
  7. kill -9 `cat /mnt/data/logs/push-sender.pid`
  8. sleep 3
  9. kill -9 `cat /mnt/data/logs/persist-server.pid`
  10. DATE=`date +%Y-%m-%d_%H:%M`
  11. mv /mnt/data/logs/front-nohup.out /mnt/data/logs/front-nohup.out.${DATE}
  12. mv /mnt/data/logs/sync-nohup.out /mnt/data/logs/sync-nohup.out.${DATE}
  13. mv /mnt/data/logs/persist-nohup.out /mnt/data/logs/persist-nohup.out.${DATE}
  14. mv /mnt/data/logs/push-sender-nohup.out /mnt/data/logs/push-sender-nohup.out.${DATE}
  15. mv /mnt/data/logs/cache-loader-nohup.out /mnt/data/logs/cache-loader-nohup.out.${DATE}