Hi Fabrizio, thanks for the fast response! i have something similar to your script, but i am starting it with the init.d scripts, so all the options are started with it.
Rene Am 23.07.2014 um 09:05 schrieb Fabrizio Di Carlo <[email protected]>: > Hi Rene, all; > > I wrote a very little/basic script for launch the services and check > if everything is ok, I think you or someone else can improve it: > > --------------------- code -------------- > > #!/bin/bash > # OpenVAS start file > > echo "Launching OpenVAS..." > > for i in openvassd openvasmd gsad; do #loop for command to run > echo "Starting $i" > $i > ps cax | grep $i &> /dev/null #check if the program is running > if [ $? -eq 0 ]; then > echo "$i is running" # program is running :) > else > echo "$i is not running" # Opsss... Something wrong > $i > fi > done > > echo "OpenVAS launch completed." > > --------------------- code -------------- > > I hope it can help. > > Fabrizio > > On Wed, Jul 23, 2014 at 8:59 AM, Rene Behring <[email protected]> wrote: >> Hello, >> >> i just tried to log in the gsa web interface and it told me that the >> OMP-Service is down. So i tried "/etc/init.d/openvas-manager status“ and got >> "openvas-manager (pid 12345) is running“. But it was not running correctly. >> >> Is there a better or other way to test that the all services are running >> correctly? I want to write a script to test it every hour or something like >> that... >> >> Thanks, >> Rene >> _______________________________________________ >> Openvas-discuss mailing list >> [email protected] >> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > > > > -- > "The intuitive mind is a sacred gift and the rational mind is a > faithful servant. We have created a society that honors the servant > and has forgotten the gift." (A. Einstein) > > "La mente intuitiva è un dono sacro e la mente razionale è un fedele > servo. Noi abbiamo creato una società che onora il servo e ha > dimenticato il dono." (A. Einstein) > > Fabrizio Di Carlo _______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
