/srv/irclogs.ubuntu.com/2012/01/10/#upstart.txt

ahammondI have a program I want to run in a loop, sleeping about 10 seconds between each run. What is the correct way to do this? Should I have a script section that has a while true; do foo; sleep 10; done?19:23
JanCahammond: I don't think you should implement that in an upstart script...20:04
ahammondJanC: what is the recommended method?20:05
JanCwell, if it's just something ad-hoc, you could do it in the upstart job definition, I guess20:09
JanCbut it feels a bit ugly when the service is written inside the job configuration  ;)20:10
ahammondI can extend the program to include a looping aspect. Shouldn't be that difficult.20:19
ahammondso, how do I achieve the pattern of "run, wait a bit, run again…"?22:24
ahammondI looked in to daemonizing the script and I'd rather not do it that way.22:24

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!