<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Todd,<br>
<br>
I tried your hint, but isn't ok.<br>
<br>
Wath do you mean with "you could put in a process grep in the script" ?<br>
<br>
Thank you<br>
<br>
Enrico<br>
<br>
<br>
Todd Barbera wrote:
<blockquote cite="mid009501c5ec3b$da140d60$0d7810ac@wgbh.org"
type="cite">
<pre wrap="">Hi Enrico,
Try putting in the following:
/etc/init.d/nagios stop
sleep 30
echo "now to stop sendmail"
/etc/init.d/sendmail restart
sleep 30
echo "now to call named"
/etc/init.d/named
This will help determine if the script is truly dying because the nagios
process stops. 30 seconds should be far more time needed for nagios to
shutdown, although I suppose you could put in a process grep in the script
to verify.
Todd
----- Original Message -----
From: "enrico fanti" <a class="moz-txt-link-rfc2396E" href="mailto:e.fanti@pointercom.it"><e.fanti@pointercom.it></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:jpratt@norwich.edu"><jpratt@norwich.edu></a>; <a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a>
Sent: Friday, November 18, 2005 7:18 AM
Subject: Re: [Nagios-users] Nagios father, script son ??
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I tried that but it doesn't work..
It seems to be very stange case...
Jamie Pratt wrote:
</pre>
<blockquote type="cite">
<pre wrap="">did you try tagging an & on the end of the command line to fork it off
into the background? sometimes this will help..
regards,
jamie
--
James Pratt
Unix Systems Administrator
Norwich University - Information Technology
<a class="moz-txt-link-abbreviated" href="mailto:jpratt@norwich.edu">jpratt@norwich.edu</a> | 1-802-485-2532
enrico fanti wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi to all
I have this problem
Nagios executes a script.
This script have to restart the Nagios process in this way:
/etc/init.d/nagios stop
/etc/init.d/sendmail restart
/etc/init.d/named
/etc/init.d/nagios start
The problem is that when the script execute this sequence, it
executes only:
/etc/init.d/nagios stop
/etc/init.d/sendmail stop
It seems that the father Nagios execute the son script, but this
script dies when the father dies (Nagios).
Is there a way to run the son script separately from the father
Thak you
Enrico
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">--
=======================================
Enrico Fanti
PointerCom s.p.a - <a class="moz-txt-link-freetext" href="http://www.pointercom.it">http://www.pointercom.it</a>
Via Francesco De Sanctis, 9
00195 Roma - ITALY
tel. +39-06-37591259
fax +39-06-37591202
<a class="moz-txt-link-abbreviated" href="mailto:e.fanti@pointercom.it">e.fanti@pointercom.it</a>
================================
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
=======================================
Enrico Fanti
PointerCom s.p.a - <a class="moz-txt-link-freetext" href="http://www.pointercom.it">http://www.pointercom.it</a>
Via Francesco De Sanctis, 9
00195 Roma - ITALY
tel. +39-06-37591259
fax +39-06-37591202
<a class="moz-txt-link-abbreviated" href="mailto:e.fanti@pointercom.it">e.fanti@pointercom.it</a>
================================
</pre>
</body>
</html>