run an action every 30 seconds

Mark Rogers mark at quarella.co.uk
Tue Feb 8 14:10:23 MSK 2011


On 08/02/11 11:05, Gregory Agerba wrote:
> Two options:
>
> 1) Use cron if you can accept minimum 1 minute between every launch.
> 2) Use a a script with a sleep() instruction and verify that the script is 
> always running.
> 3) Use a heartbeat solution - http://linux-ha.org/wiki/Main_Page

4) Use cron to start a script which does the test, sleeps for 30s, then does 
the test again, then dies (to be restarted by cron at the next minute)

-- 
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG




More information about the nginx mailing list