30 lines
584 B
Makefile
30 lines
584 B
Makefile
|
all:
|
||
|
@echo "make log # watch the zookeeper log"
|
||
|
@echo "make status # show the systemd status of zookeeper"
|
||
|
@echo "make restart # restart zookeeper"
|
||
|
@echo "make enable # enable zookeeper on boot"
|
||
|
|
||
|
log:
|
||
|
journalctl -f -xeu zookeeper.service
|
||
|
|
||
|
curl-vms:
|
||
|
curl http://localhost:2520/vms
|
||
|
|
||
|
curl-kill:
|
||
|
curl http://localhost:2520/kill
|
||
|
|
||
|
status:
|
||
|
dpkg -s zookeeper
|
||
|
systemctl status zookeeper.service
|
||
|
|
||
|
enable:
|
||
|
systemctl enable zookeeper.service
|
||
|
|
||
|
stop:
|
||
|
systemctl stop zookeeper.service
|
||
|
|
||
|
restart:
|
||
|
systemctl stop zookeeper.service
|
||
|
systemctl start zookeeper.service
|
||
|
make log
|