Advertisement
Guest User

Untitled

a guest
Nov 9th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. exec 2> /dev/null
  4. ans=$(netstat -tulpn | grep 8005 | wc -l 2> /dev/null)
  5. if [[ "$ans" == "1" ]];
  6. then
  7. echo "Congradulation! Moloch should now be running on localhost:8005."
  8. else
  9. echo "Moloch does not seems to be running...Check the status using 'systemctl status molochviewer.service'"
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement