mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
add zookeeper.service
This commit is contained in:
parent
e0a76c351d
commit
7432895a34
17
zookeeper/zookeeper.service
Normal file
17
zookeeper/zookeeper.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Zookeeper Service
|
||||
Documentation=http://zookeeper.apache.org
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=zookeeper
|
||||
Group=zookeeper
|
||||
Environment=/opt/zookeeper/
|
||||
ExecStart=/opt/zookeeper/bin/zkServer.sh start
|
||||
ExecStop=/opt/zookeeper/bin/zkServer.sh stop
|
||||
ExecReload=/opt/zookeeper/bin/zkServer.sh restart
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user