Trying to cope with #722 for the moment.
Issue warning if there already is a running redis server, typically the system server installed with the redis[-server] package. See http://bugs.joindiaspora.com/issues/722
This commit is contained in:
parent
220e9ebd2c
commit
02477ed27a
1 changed files with 10 additions and 0 deletions
|
|
@ -99,6 +99,16 @@ if [ -n "$services" ]; then
|
||||||
exit 64
|
exit 64
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# See http://bugs.joindiaspora.com/issues/722
|
||||||
|
services=$( chk_service 5379 )
|
||||||
|
if [ -n "$services" ]; then
|
||||||
|
echo "Error: Someone (another redis server?) is using redis port 5379" >&2
|
||||||
|
echo " $services"
|
||||||
|
exit 64
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check if Mongo is running
|
# Check if Mongo is running
|
||||||
if ! ps ax | grep -v grep | grep mongod >/dev/null
|
if ! ps ax | grep -v grep | grep mongod >/dev/null
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue