Skip to content

Instantly share code, notes, and snippets.

@OneYX
Created March 23, 2021 06:07
Show Gist options
  • Save OneYX/c351118923ac98f79a850a7b05128e6f to your computer and use it in GitHub Desktop.
Save OneYX/c351118923ac98f79a850a7b05128e6f to your computer and use it in GitHub Desktop.
kafdrop.service
[Unit]
Description=Kafdrop
After=syslog.target
After=network.target
After=kafka.service
[Service]
SyslogIdentifier=kafdrop
TimeoutStartSec=10min
Type=simple
WorkingDirectory=/root
ExecStart=/usr/local/java/jdk-11.0.2/bin/java --add-opens=java.base/sun.nio.ch=ALL-UNNAMED -jar kafdrop-3.27.0.jar --kafka.brokerConnect=localhost:2181
ExecStop=/bin/kill -TERM $MAINPID
RemainAfterExit=no
Restart=always
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment