Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Community support Start Pandora Agent on linux reboot automatically

  • Start Pandora Agent on linux reboot automatically

    Posted by sillyPandora on mayo 9, 2007 at 21:00

    Dear all the linux gurus. How do I accomplish this? I don’t know how to put it in my rc.d links. Since that will only allow me to run under user “root” not “pandora”. Also I tried to put in rc.local script, but I had trouble executing it.

    Currently I have pandora agent installed under
    /opt/pandora_agent/pandora_agent_daemon

    The only way I can execute it is
    ./pandora_agent_daemon start

    I had to use ./ in the front. And I am really not sure how to run this when the system starts up. I guess if I put this in rc.local
    /opt/pandora_agent/pandora_agent_daemon start
    it will work, but it is running under root, i have to establish ssh under root. Other than that, I don’t see another way around it. Please help me, I know this is not pandora related, but if you know how to do it in Linux please help me. (I am sure you are more capable than me running a excellent Debian linux virtual machine 😉

    sillyPandora replied 17 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • manu

    Member
    mayo 10, 2007 at 11:19
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    First of all, copy pandora_agent_daemon to /etc/init.d

    Then if you wanna pandora_agent_daemon starts in your system boot, just:

    ln -s /etc/init.d/pandora_agent_daemon /etc/rcX.d/S99pandora_agent_daemon

    Where the X is the run level you’re booting into.

    Then, to make sure your pandora_agent_daemon is being correctly switched off when you make a shutdown, or poweroff…

    ln -s /etc/init.d/pandora_agent_daemon /etc/rc0.d/K99pandora_agent_daemon
    ln -s /etc/init.d/pandora_agent_daemon /etc/rc6.d/K99pandora_agent_daemon

    Hope this helps.

  • sillyPandora

    Member
    mayo 18, 2007 at 22:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    okay Thanks, I made it to work. props