pid - Stop cron job from starting while it's already running (even across servers) -



pid - Stop cron job from starting while it's already running (even across servers) -

i don't think exact duplicate of other questions, sense free point me somewhere if it's been answered.

i'm looking way have cron job start running if isn't running. example, if job runs every 15 minutes takes hr run, don't want duplicate processes start , overlap original job doing.

in other questions others have talked making pid file stops job starting duplicates (or similar strategies), case little different. have multiple machines run cron jobs, , want currently-running process on of them stop new instances of job starting. pid file wouldn't enough, since local 1 machine.

what best way of dealing situation?

a pid file on shared folder?

cron pid

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -