Commit 84dd063c authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Moved pid file and control socket to /run for agent2

parent 7c83d17f
......@@ -77,6 +77,8 @@ agent2:
sed -e 's|.*HostMetadataItem=.*|HostMetadataItem=system.sw.os[name]|' -i /etc/zabbix_agent2.conf
sed -e 's|^# Include=/usr/local/etc/zabbix_agentd\.userparams\.conf|Include=/etc/zabbix_agentd.userparams.conf|' -i /etc/zabbix_agent2.conf
sed -e 's|^# Include=/usr/local/etc/zabbix_agentd\.conf\.d/\*\.conf|Include=/etc/zabbix_agentd.conf.d/*.conf|' -i /etc/zabbix_agent2.conf
sed -e 's|.*PidFile=.*|PidFile=/run/zabbix_agent2.pid|' -i /etc/zabbix_agent2.conf
sed -e 's|^ControlSocket=.*|ControlSocket=/run/agent.sock|' -i /etc/zabbix_agent2.conf
@echo "$$ZABBIX_AGENT2_SERVICE" > /lib/systemd/system/zabbix-agent2.service
systemctl enable zabbix-agent2.service
@echo "$$ZABBIX_AGENT2_CONFIG" >> /etc/config/zabbix
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment