Two options:<br><br>1) Use cron if you can accept minimum 1 minute between every launch.<br>2) Use a a script with a sleep() instruction and verify that the script is always running.<br>3) Use a heartbeat solution - <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">&lt;<a href="mailto:baalchina@gmail.com">baalchina@gmail.com</a>&gt;</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,&quot;michalkraus&quot; &lt;<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>&gt;写道:</p><div><div></div><div class="h5"><br type="attribution">&gt; Hello,<br>&gt; I would like my Nginx server to run every 30 seconds a service job. This<br>


&gt; job will just send a message to another server that the nginx is running<br>&gt; and OK. Does anybody know how to do it?<br>&gt; I have just one idea - to write a module that will send the OK message<br>&gt; to another server. Then cron will run each 1 minute (unfortunately 30<br>


&gt; seconds is not possible) a script that will send a request to the<br>&gt; module.<br>&gt; <br>&gt; Thanks in advance for your ideas,<br>&gt; Michal<br>&gt; <br>&gt; 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>


&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; nginx mailing list<br>&gt; <a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>&gt; <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>