[Unit] Description=Apache Kafka server (producer) Documentation=http://kafka.apache.org/documentation.html Requires=network.target After=network.target [Service] Type=simple User=kafka Group=kafka SyslogIdentifier=kafka-producer ExecStart=/opt/kafka/bin/kafka-console-producer.sh <% @producer_service_config.sort.each do |k,v| -%><% unless v.to_s.strip.empty? -%>--<%= k -%>=<%= v %> <% end -%><% end -%> <%= @input %> LimitNOFILE=65536 LimitCORE=infinity [Install] WantedBy=multi-user.target