Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SERVICE="0.0.0.0:442"
- if netstat -apn | grep "0.0.0.0:442" >/dev/null
- then
- echo "$SERVICE is running"
- else
- echo "$SERVICE stopped"
- #start stunnel if stopped
- service stunnel4 restart
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement