Created
January 15, 2018 13:17
-
-
Save bigmacd/540175ed6a189dff3eac91f17c4a625e to your computer and use it in GitHub Desktop.
CentOS 7/RHEL 7 service file for zookeeper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Apache Zookeeper server | |
Documentation=http://zookeeper.apache.org | |
Requires=network.target remote-fs.target | |
After=network.target remote-fs.target | |
[Service] | |
Type=forking | |
User=zookeeper | |
Group=zookeeper | |
ExecStart=/opt/zookeeper/bin/zkServer.sh start | |
ExecStop=/opt/zookeeper/bin/zkServer.sh stop | |
ExecReload=/opt/zookeeper/bin/zkServer.sh restart | |
WorkingDirectory=/var/lib/zookeeper | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to:
# systemctl daemon-reload
# systemctl enable zookeeper
# systemctl start zookeeper