Skip to content

Instantly share code, notes, and snippets.

@bigmacd
Created January 15, 2018 13:17
Show Gist options
  • Save bigmacd/540175ed6a189dff3eac91f17c4a625e to your computer and use it in GitHub Desktop.
Save bigmacd/540175ed6a189dff3eac91f17c4a625e to your computer and use it in GitHub Desktop.
CentOS 7/RHEL 7 service file for zookeeper
[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
@TrillStones
Copy link

It doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment