Pandora FMS Community

Auto starting pandora_network etc, doesnt seem to work

pandarawr · 27 sept 2007, 2:25 · 6 mensajes · 42 visitas

  1. Inicio del debate

    Hey I am on ubuntu LTS and the pandora install works great! only problem is that the services pandora_network pandora_server etc... all dont run on startup. I have tried re adding them to /etc/rc2.d with update-rc.d only to be told that they already exsist. They seem to be running at startup, but for some reason they terminate as the server comes up with none of those processes running. When I manually run them then they show up in a ps -ef |grep pandora but they dont, if the server just restarts. I have to manually run the init scripts every time. Any idea why? also everytime i have to make the directory /var/run/pandora, otherwise i get messages similar to this : Pandora FMS cannot write it's PID file in /var/run/pandora. Please create that directory

  2. Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id Secondly, is the mysql booting when the system does? Finally, you have to create the /var/run/pandora manually, but only once.

  3. Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id Secondly, is the mysql booting when the system does? Finally, you have to create the /var/run/pandora manually, but only once.

    Yes confirmed runlevel 2. I have created the directory manually but it seems to disapear every reboot. I tried chowning it root permissions as well as pandora permissions but it disapears every time. I think thats the critical part thats going to fix this. If I could only figure out how /var/run worked exactly, but thats a really hard string to type into google. How do i keep the directory from being deleted? alternatively, it seems as though everything in /var/run is created on the fly when you reboot the machine (i know this because the timestamp changes everytime, even on directories). So maybe pandora is missing the part where it creates that directory? mysql is fine because once the system boots and i manually create the /var/run/pandora dir and then run the scripts as root, the machine has no problem talking to the database.

  4. You can change the directory in the .conf file of the server if you have problems with the default one.

    Well, first off, do you boot up in runlevel 2? Make sure of it with a cat /etc/inittab | grep id Secondly, is the mysql booting when the system does? Finally, you have to create the /var/run/pandora manually, but only once.

    Yes confirmed runlevel 2. I have created the directory manually but it seems to disapear every reboot. I tried chowning it root permissions as well as pandora permissions but it disapears every time. I think thats the critical part thats going to fix this. If I could only figure out how /var/run worked exactly, but thats a really hard string to type into google. How do i keep the directory from being deleted? alternatively, it seems as though everything in /var/run is created on the fly when you reboot the machine (i know this because the timestamp changes everytime, even on directories). So maybe pandora is missing the part where it creates that directory? mysql is fine because once the system boots and i manually create the /var/run/pandora dir and then run the scripts as root, the machine has no problem talking to the database.

  5. You can change the directory in the .conf file of the server if you have problems with the default one.

    I guess I could drop it in /var/run (no pandora directory) and see if that works. What do you add to the conf file to change the pidfile location? There seems to be no documentation on that file.

  6. You can change the directory in the .conf file of the server if you have problems with the default one.

    I guess I could drop it in /var/run (no pandora directory) and see if that works. What do you add to the conf file to change the pidfile location? There seems to be no documentation on that file.

    You need to modify the script variables in launcher script, they are located on the first lines of file.

Entra en tu cuenta para publicar.