<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://blog.para-rayos.cl/gadgets/Blog/templates/atom.xsl" ?><feed xmlns="http://www.w3.org/2005/Atom">
<link rel="self"  href="http://blog.para-rayos.cl"/>
<title  type="text" ></title>
	<author>
		<name>Jaws Administrator</name>
		<uri>http://blog.para-rayos.cl</uri>
	</author>
<subtitle  type="text" >Commentarios en el Post 70</subtitle>
<id>http://blog.para-rayos.cl</id>
<generator>JAWS 0.7.3</generator>
<rights  type="text" >2007, Jaws Administrator</rights>
<updated>2010-01-09T08:42:57-07:00</updated>
<entry>
	<title  type="text" ><![CDATA[ Re: Script para reiniciar Apache en caso de que no este funcionando. ]]></title>
	<link rel="alternate"  type="text/html"  href="http://blog.para-rayos.cl/index.php/blog/show/70.html#comment16" title="Re: Script para reiniciar Apache en caso de que no este funcionando." />
	<author>
		<name>Rodrigo Zamoran Nelson</name>
		<uri>http://blog.para-rayos.cl</uri>
	</author>
	<id>http://blog/70/16</id>
	<updated>2010-01-09T08:42:57-07:00</updated>
	<published>2010-01-09T08:42:57-07:00</published>
	<summary  type="text/html" ><![CDATA[ 	<p>#!/bin/sh</p>
	<p>while [ true ]
do</p>
	<p>ps -fea | grep "/usr/sbin/apache2"</p>
	<p>        if test ! $? -eq 0</p>
	<p>        then
        sendemail -f alarma@servidor.cl -t destino@servidor.cl -s 127.0.0.1 -u Apache se ha detenido y a sera reactivado.
        /etc/init.d/apache2 start
        fi</p>
	<p>sleep 180
done
###########################################</p>
	<p>Menos atado, sin cron y con reporte
</p>
 ]]></summary>
	<content  type="text/html" ><![CDATA[ 	<p>#!/bin/sh</p>
	<p>while [ true ]
do</p>
	<p>ps -fea | grep "/usr/sbin/apache2"</p>
	<p>        if test ! $? -eq 0</p>
	<p>        then
        sendemail -f alarma@servidor.cl -t destino@servidor.cl -s 127.0.0.1 -u Apache se ha detenido y a sera reactivado.
        /etc/init.d/apache2 start
        fi</p>
	<p>sleep 180
done
###########################################</p>
	<p>Menos atado, sin cron y con reporte
</p>
 ]]></content>
</entry>
</feed>