run an action every 30 seconds

António P. P. Almeida appa at
Tue Feb 8 14:20:03 MSK 2011

On 8 Fev 2011 10h37 WET, nginx-forum at wrote:

> 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.

Use the and a cron job that
checks a certain location and posts the message you wnat using curl to
the other server.

Just an idea

--- appa

More information about the nginx mailing list