CentOS 6 init.d script status issue


#1

Hello,

I’m trying to write a script that will monitor the state of various services using couchbase-server init.d script. It seems like the init.d script’s status always reports “couchbase-server-community is not running” even though it is. Does anyone know if this is a bug in the script?


#2

I am facing same issue and service is running fine and no issue but when i checked service status it says “couchbase-server0community” is not running.

I am running Centos 6 with couchbase server 4.0 and sync 1.1.1

Any help would be good.


#3

couchbase 4.0 CE has this issue. change _init.d script file like below
PIDFILE=/opt/couchbase/var/lib/couchbase/couchbase-server-community.pid
NODEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server-community.node
COOKIEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server-community.cookie

and also deamon file /opt/couchbase/bin/couchbase-server like below
PIDFILE="/opt/couchbase/var/lib/couchbase/couchbase-server-community.pid"
COOKIEFILE="/opt/couchbase/var/lib/couchbase/couchbase-server-community.cookie"

you can try 4.1.0 where issue is fixed.