Pandora FMS Community

Start Pandora Agent on linux reboot automatically

sillyPandora · 9 may 2007, 21:00 · 3 mensajes · 79 visitas

  1. Inicio del debate

    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 ;)

  2. 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.

  3. okay Thanks, I made it to work. props

Entra en tu cuenta para publicar.