1828723 Members
2570 Online
109984 Solutions
New Discussion

Re: script problem

 
SOLVED
Go to solution
Domenico_5
Respected Contributor

Re: script problem

for Carlos

Good Idea!!!!!!!!!!!!!!!!!!

nrpe have two options -d standalone daemon and -i inetd

so if I use -i and edit my inetd.conf it run.

Now if I want to check in rc3 where i must insert trap "" 1?


Deepak Extross
Honored Contributor

Re: script problem

Interesting thread..seems to me that your process gets a SIGHUP and therefore terminates.
Try replacing
/usr/local/nrpe/nrpe -d /usr/local/nrpe/nrpe.cfg > /dev/null 2>&1
with
nohup /usr/local/nrpe/nrpe -d /usr/local/nrpe/nrpe.cfg > /dev/null 2>&1 &

Good Luck!
Carlos Fernandez Riera
Honored Contributor
Solution

Re: script problem


...
trap "" 1
/usr/local/nrpe/nrpe -d /usr/local/nrpe/nrpe.cfg & # > /dev/null 2>&1

...



unsupported
Domenico_5
Respected Contributor

Re: script problem

Carlos

Deepak


Good work !!!!!!! Great

tnx for all