Advertisement
alfaisalvpn

alfaisal-stunnel

Jun 17th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SERVICE="0.0.0.0:442"
  4.  
  5. if netstat -apn | grep "0.0.0.0:442" >/dev/null
  6.  
  7. then
  8.  
  9. echo "$SERVICE is running"
  10.  
  11. else
  12.  
  13. echo "$SERVICE stopped"
  14.  
  15. #start stunnel if stopped
  16. service stunnel4 restart
  17.  
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement