Prasath Prasath - 18 days ago 6
Linux Question

Kafka server is getting down while pressing CTRL+c

My Kafka server is getting down while pressing CTRL+c in my linux server.
How do I avoid that? Or is there any other *.sh file to start kafka server without any problem pressing CTRL+c?

Answer

Add & at the end of your command to start kafka. It will start your process as a background process allowing you to use your console. For example:

#          v  Your file to start Kafka 
./start_kafka.sh -- some-parameters &
#               Add this at the end ^