Skip to content

Kafka Service Stop Clean Shutdown #169

@shauryagarg2006

Description

@shauryagarg2006

The systemd service configuration does not have a ExecStop for kafka service.
When we stop the run the command sudo systemctl stop kafka and the start it back up It recovers from snapshots and is not a clean shutdown.
I think we need to replace/update the service file from:

ExecStart=/bin/bash $KAFKA_RUN $KAFKA_ARGS $KAFKA_CONFIG

to:

ExecStart=/opt/kafka/bin/kafka-server-start.sh $KAFKA_CONFIG
ExecStop=/opt/kafka/bin/kafka-server-stop.sh

I will also test this and update here.

Metadata

Metadata

Assignees

Labels

BugSomething isn't workinghacktoberfestAn issue highlighted for the digital ocean Hacktoberfest Event

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions