Pandora FMS Community

Pandora Agent Init Script

Jose · 3 may 2023, 19:35 · 2 mensajes · 119 visitas

agentlinuxservicesystemctlsystemd
  1. Inicio del debate

    Hello,

    In Linux, when the agent is installed, there are two init scripts created:

    - /etc/init.d/pandora_agent_daemon

    - /etc/systemd/system/pandora_agent_daemon.service (systemd unit)

    If I start the agent's service with /etc/init.d/pandora_agent_daemon start an then when I issue the command systemctl status pandora_agent_daemon.service, the output will tell that the service is inactive.

    How to make systemctl know if the agent is running (even if the agent is executed manually)?

    Sometimes when the agent is no running and I type systemctl start andora_agent_daemon.service, I get the error "Start request repeated too quickly"

    Is there a way to improve the script of the pandora_agent_daemon.service unit, taking into account that the current Linux distributions use systemd to manager services.

    What do you recommend?

    Thanks in advance

  2. Hi Jose,

    We recommend the use of "/etc/init.d/pandora_agent_daemon" to perform actions with the service (start, stop, status or restart).

    Best regards,

    Víc.

Entra en tu cuenta para publicar.