[Unit]
Description=Zabbix Agent
After=syslog.target
After=network.target

[Service]
Type=forking
Restart=on-failure
PIDFile=<%= @pidfile %>
KillMode=control-group
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s

[Install]
WantedBy=multi-user.target

[Unit]
Description=Zabbix Agent
After=network.target

[Service]
Type=simple
Restart=on-failure
PIDFile=<%= @pidfile %>
KillMode=control-group
ExecStart=/usr/sbin/zabbix_agentd -c <%= @agent_configfile_path %>
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s

[Install]
WantedBy=multi-user.target

Enhance the systemd unit template
Enhance the systemd unit template

there is no need to require the syslog target. Also the agent doesn't
fork, simple is correct.
