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:
Alec Leamas 2010-12-16 12:16:26 +01:00
parent 220e9ebd2c
commit 02477ed27a

View file

@ -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