There is no restart command out of the box however, you can run Kafka Manager as a service.
Firstly, create the service file under /etc/systemd/system/kafka-manager.service
and add the following content:
[Unit]
Description=Kafka Manager
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
ExecStart=/opt/kafka-manager-1.3.3.22/bin/kafka-manager
Type=simple
In /opt/kafka-manager-1.3.3.22/conf/application.conf
:
play.crypto.secret="some-secret"
play.http.requestHandler="play.http.DefaultHttpRequestHandler"
play.application.loader=loader.KafkaManagerLoader
pinned-dispatcher.type="PinnedDispatcher"
pinned-dispatcher.executor="thread-pool-executor"
kafka-manager.zkhosts="my-zookeeper-connection-string"
kafka-manager.base-zk-path="/a-chroot"
In /opt/kafka-manager-1.3.3.22/conf/application.ini
:
-Dapplication.home=/opt/kafka-manager-1.3.3.22
-Dpidfile.path=/opt/kafka-manager-1.3.3.22/kafka-manager.pid
-Dhttp.port=8080
and finally run
systemctl daemon-reload
systemctl enable kafka-manager --now
Start the service
systemctl start kafka-manager.service
Stop the service
systemctl stop kafka-manager.service
Restart the service
systemctl restart kafka-manager.service