2013-06-11 16:58:39 +00:00
|
|
|
[Unit]
|
2013-06-26 17:19:26 +00:00
|
|
|
Description=Apache ZooKeeper
|
|
|
|
After=network.target
|
|
|
|
ConditionPathExists=/etc/zookeeper/zoo.cfg
|
|
|
|
ConditionPathExists=/etc/zookeeper/log4j.properties
|
|
|
|
ConditionPathExists=/var/lib/zookeeper/data/myid
|
2013-06-11 16:58:39 +00:00
|
|
|
|
|
|
|
[Service]
|
2014-10-15 13:30:46 +00:00
|
|
|
Type=forking
|
2013-06-11 16:58:39 +00:00
|
|
|
User=zookeeper
|
|
|
|
SyslogIdentifier=zookeeper
|
2013-06-26 17:19:26 +00:00
|
|
|
WorkingDirectory=/var/lib/zookeeper
|
2014-10-15 13:30:46 +00:00
|
|
|
ExecStart=/usr/bin/zkServer.sh
|
|
|
|
#ExecStop=
|
2013-06-11 16:58:39 +00:00
|
|
|
|
|
|
|
[Install]
|
2013-06-26 17:19:26 +00:00
|
|
|
WantedBy=multi-user.target
|