zookeeper/zookeeper.service

24 lines
476 B
SYSTEMD
Raw Normal View History

2013-06-11 16:58:39 +00:00
[Unit]
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
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]
WantedBy=multi-user.target