Skip to content

How to create a script to start Zabbix agent at startup

Hi,

I have installed the Zabbix Agent con PLCnext with the guix package manager.

The installation directory is:

/gnu/store/qr942p6b8xyq0kzz1fq3x1qa1nr34kid-zabbix-agentd-4.2.0/sbin/zabbix_agentd

It works after reboot whitout problems if I launch:

admin@axcf2152:~$ zabbix_agentd

I'm trying to automate the starting with init.d but I don't have familiarities with linux booting mechanisms and the script doesn't work. I have tried to modify an existing script (from "How to start Node-red automatically on boot using init.d").

Could you help me how to prepare a script?

 

Thanks in advance

Comments

  • Hello Alberto,

    so what do you have so far and where does it fail?
    for the start simply try to Start your daemon in the background with your script.
    As soon as that works it is a matter of Permissions and the correct format to register the script with update-rc.

    kind regards,
    Oliver 

Sign In or Register to comment.