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
|
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-21 21:02:21 +00:00
|
|
|
ExecStart=/usr/bin/zkServer.sh start zoo.cfg
|
|
|
|
ExecStop=/usr/bin/zkServer.sh stop
|
|
|
|
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
# TODO: check updated permissions.
|
|
|
|
# Group=zookeeper
|
|
|
|
Restart=always
|
|
|
|
RestartSec=20
|
2013-06-11 16:58:39 +00:00
|
|
|
|
|
|
|
[Install]
|
2013-06-26 17:19:26 +00:00
|
|
|
WantedBy=multi-user.target
|