[Unit]
Description=<%= @daemon_name %> daemon
Wants=network-online.target
After=network-online.target

[Service]
User=<%= @user %>
EnvironmentFile=<%= @env_path %>
ExecStart=/bin/bash $KAFKA_RUN $KAFKA_ARGS $KAFKA_CONFIG
TimeoutSec=10
TimeoutStopSec=<%= @kill_timeout %>
<% if @ulimit %>
LimitNOFILE=<%= @ulimit %>
<% end %>

[Install]
WantedBy=multi-user.target

[Unit]
Description=<%= @daemon_name %> daemon
Wants=network-online.target
After=network-online.target

[Service]
User=<%= @user %>
EnvironmentFile=<%= @env_path %>
SyslogIdentifier=kafka
ExecStart=/bin/bash $KAFKA_RUN $KAFKA_ARGS $KAFKA_CONFIG
TimeoutSec=10
TimeoutStopSec=<%= @kill_timeout %>
<% if @ulimit %>
LimitNOFILE=<%= @ulimit %>
<% end %>

[Install]
WantedBy=multi-user.target

Add syslog identifier to systemd unit
Add syslog identifier to systemd unit

This adds a "kafka" syslog identifier so this stops showing up as "bash" in the systemd journal.