Ensure Zookeeper restarts itself
The Zookeeper daemon does not appear to exit with any status other than 0, even after a fatal error. Work around this.
This commit is contained in:
parent
b03ecf0125
commit
8eecc95f2f
|
@ -12,6 +12,7 @@ User = zookeeper
|
||||||
Group = zookeeper
|
Group = zookeeper
|
||||||
EnvironmentFile = -/etc/zookeeper/conf/environment
|
EnvironmentFile = -/etc/zookeeper/conf/environment
|
||||||
EnvironmentFile = -/etc/default/zookeeper
|
EnvironmentFile = -/etc/default/zookeeper
|
||||||
|
Restart = always
|
||||||
ExecStart = /usr/bin/java \
|
ExecStart = /usr/bin/java \
|
||||||
-cp $CLASSPATH \
|
-cp $CLASSPATH \
|
||||||
$JAVA_OPTS \
|
$JAVA_OPTS \
|
||||||
|
|
Loading…
Reference in New Issue