I have a bunch of cron jobs that run `supervisorctl start suchandsuch` and for the most part I make the processes themselves responsible for exiting at the right time (say, after market close).
I also make the processes responsible for handling changes in start time due to other factors like daylight savings. The cron jobs start everything before the earliest time and the processes sleep until the correct start time for the current date. On Wed, Jun 10, 2015 at 02:36:34PM +1000, Steve Lorimer wrote: > Is there a way to schedule a window during which a service should be > running? > > Similar to cron, but managed through supervisord? > > [program:theprogramname] > command=/bin/cat > starttime=09:00:00 > stoptime=17:00:00 > dow=1-5 > dom=* > month=* > > If this isn't available in supervisord directly, what is the recommended > way to achieve this? > > TIA > Steve > _______________________________________________ > Supervisor-users mailing list > Supervisor-users@lists.supervisord.org > https://lists.supervisord.org/mailman/listinfo/supervisor-users _______________________________________________ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users