-
Incident report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
None
-
None
-
None
SystemD Service file in 4.0.0rc3 is missing a ExecPreStart set of commands to create /var/run/zabbix, change mod to 0755 and change own to zabbix:zabbix
Current FILE:
cat /lib/systemd/system/zabbix-agent.service
[Unit] Description=Zabbix Agent After=syslog.target After=network.target [Service] Environment="CONFFILE=/etc/zabbix/zabbix_agentd.conf" EnvironmentFile=-/etc/default/zabbix-agent Type=forking Restart=on-failure PIDFile=/run/zabbix/zabbix_agentd.pid KillMode=control-group ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE ExecStop=/bin/kill -SIGTERM $MAINPID RestartSec=10s [Install] WantedBy=multi-user.target
Patched FILE:
[Unit] Description=Zabbix Agent After=syslog.target After=network.target [Service] Environment="CONFFILE=/etc/zabbix/zabbix_agentd.conf" EnvironmentFile=-/etc/default/zabbix-agent Type=forking Restart=on-failure PIDFile=/run/zabbix/zabbix_agentd.pid KillMode=control-group ExecPreStart=/bin/mkdir -p /run/zabbix ExecPreStart=/bin/chmod 0755 /run/zabbix ExecPreStart=/bin/chown zabbix:zabbix /run/zabbix ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE ExecStop=/bin/kill -SIGTERM $MAINPID RestartSec=10s [Install] WantedBy=multi-user.target