From 02477ed27a6d6f6d369718b6c6562941491d507b Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Thu, 16 Dec 2010 12:16:26 +0100
Subject: [PATCH] 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
---
 script/server | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/script/server b/script/server
index 9a6fb530d3..b20e0d59c2 100755
--- a/script/server
+++ b/script/server
@@ -99,6 +99,16 @@ if [ -n "$services" ]; then
     exit 64
 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
 if  ! ps ax | grep -v grep | grep mongod >/dev/null
 then
-- 
GitLab