/etc/init.d/zookeeper start
/etc/init.d/zookeeper: line 16: [: root: unary operator expected
Starting KEY ...
Starting with ...
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/conf/zoo.cfg
Starting zookeeper ... STARTED
Also pay attention on:
/etc/init.d/zookeeper stop
/etc/init.d/zookeeper status && echo "ok, zookeeper running"
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/conf/zoo.cfg
Error contacting service. It is probably not running.
ok, zookeeper running
Also pay attention on: