Three options:<br><br>1) Cron if you can wait 1 minute.<br>2) Script always running with sleep() instruction and check that the script is always running.<br>3) HA/Heartbeat - <a href="http://linux-ha.org/wiki/Main_Page">http://linux-ha.org/wiki/Main_Page</a><br>
<br>- Gregory<br><br><div class="gmail_quote">2011/2/8 baalchina <span dir="ltr"><<a href="mailto:baalchina@gmail.com">baalchina@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>how about linux crond?i think it will be much easier than moudle.</p>
<p>在 2011-2-8 下åˆ6:37,"michalkraus" <<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>>写é“:</p><div><div></div><div class="h5"><br type="attribution">> Hello,<br>> I would like my Nginx server to run every 30 seconds a service job. This<br>
> job will just send a message to another server that the nginx is running<br>> and OK. Does anybody know how to do it?<br>> I have just one idea - to write a module that will send the OK message<br>> to another server. Then cron will run each 1 minute (unfortunately 30<br>
> seconds is not possible) a script that will send a request to the<br>> module.<br>> <br>> Thanks in advance for your ideas,<br>> Michal<br>> <br>> Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,173142,173142#msg-173142" target="_blank">http://forum.nginx.org/read.php?2,173142,173142#msg-173142</a><br>
> <br>> <br>> _______________________________________________<br>> nginx mailing list<br>> <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>> <a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br>