Providing better message if port 3000 is in use, closing ticket 287.
This commit is contained in:
parent
2a153316ce
commit
49975d7010
1 changed files with 12 additions and 0 deletions
|
|
@ -1,4 +1,16 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Start diaspora websocket and main services
|
||||
#
|
||||
# See issue 287
|
||||
|
||||
# Is someone listening on 3000 already? (ipv4 only test ?)
|
||||
services=$( netstat -nl | grep '[^:]:3000[ \t]')
|
||||
test -n "$services" && {
|
||||
echo "Warning: something is already using port 3000"
|
||||
echo " $services"
|
||||
}
|
||||
|
||||
|
||||
# Check if Mongo is running
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue