Hi,
I am trying to use a Zabbix Agent 2 compiled in systemd so I can start it as a service and have more control over it. I created the .service but when starting it it returns this error:
But really the process has started correctly. The problem with this is that it tries to start it every X time since for the OS it has not started correctly. Do you know if I have done something wrong?
I leave the .service file that I use (same as the normal agent):
I am trying to use a Zabbix Agent 2 compiled in systemd so I can start it as a service and have more control over it. I created the .service but when starting it it returns this error:
Job for zabbix-agent2.service failed because a timeout was exceeded.
I leave the .service file that I use (same as the normal agent):
Code:
[Unit] Description=Zabbix Agent 2 After=syslog.target After=network.target [Service] Environment="CONFFILE=/etc/zabbix/zabbix-agent2/conf/zabbix_agent2.conf" EnvironmentFile=-/etc/default/zabbix-agent2 Type=forking Restart=on-failure PIDFile=/run/zabbix/zabbix_agentd2.pid KillMode=control-group ExecStart=/usr/sbin/zabbix_agentd2 -c $CONFFILE ExecStop=/bin/kill -SIGTERM $MAINPID RestartSec=10s User=zabbix Group=zabbix [Install] WantedBy=multi-user.target
Comment