restart.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. # SL
  3. # ==========================================
  4. # Color
  5. RED='\033[0;31m'
  6. NC='\033[0m'
  7. GREEN='\033[0;32m'
  8. ORANGE='\033[0;33m'
  9. BLUE='\033[0;34m'
  10. PURPLE='\033[0;35m'
  11. CYAN='\033[0;36m'
  12. LIGHT='\033[0;37m'
  13. # ==========================================
  14. clear
  15. echo -e ""
  16. echo -e "Starting Restart All Service"
  17. sleep 2
  18. systemctl restart ssrmu
  19. systemctl restart ws-tls
  20. systemctl restart ws-nontls
  21. systemctl restart xray.service
  22. systemctl restart shadowsocks-libev
  23. systemctl restart xl2tpd
  24. systemctl restart pptpd
  25. systemctl restart ipsec
  26. systemctl restart accel-ppp
  27. systemctl restart ws-ovpn
  28. systemctl restart wg-quick@wg0
  29. systemctl restart ssh-ohp
  30. systemctl restart dropbear-ohp
  31. systemctl restart openvpn-ohp
  32. systemctl restart trojan-go
  33. /etc/init.d/ssrmu restart
  34. /etc/init.d/ssh restart
  35. /etc/init.d/dropbear restart
  36. /etc/init.d/sslh restart
  37. /etc/init.d/stunnel5 restart
  38. /etc/init.d/openvpn restart
  39. /etc/init.d/fail2ban restart
  40. /etc/init.d/cron restart
  41. /etc/init.d/nginx restart
  42. /etc/init.d/squid restart
  43. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 1000
  44. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 1000
  45. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 1000
  46. echo -e "Restart All Service Berhasil"