run an action every 30 seconds
Gregory Agerba
gregory.agerba at gmail.com
Tue Feb 8 14:06:43 MSK 2011
Three options:
1) Cron if you can wait 1 minute.
2) Script always running with sleep() instruction and check that the script
is always running.
3) HA/Heartbeat - http://linux-ha.org/wiki/Main_Page
- Gregory
2011/2/8 baalchina <baalchina at gmail.com>
> how about linux crond?i think it will be much easier than moudle.
>
> 在 2011-2-8 下午6:37,"michalkraus" <nginx-forum at nginx.us>写道:
>
> > Hello,
> > I would like my Nginx server to run every 30 seconds a service job. This
> > job will just send a message to another server that the nginx is running
> > and OK. Does anybody know how to do it?
> > I have just one idea - to write a module that will send the OK message
> > to another server. Then cron will run each 1 minute (unfortunately 30
> > seconds is not possible) a script that will send a request to the
> > module.
> >
> > Thanks in advance for your ideas,
> > Michal
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,173142,173142#msg-173142
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110208/f3d32d75/attachment-0001.html>
More information about the nginx
mailing list