ahammond | I 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 |
---|---|---|
JanC | ahammond: I don't think you should implement that in an upstart script... | 20:04 |
ahammond | JanC: what is the recommended method? | 20:05 |
JanC | well, if it's just something ad-hoc, you could do it in the upstart job definition, I guess | 20:09 |
JanC | but it feels a bit ugly when the service is written inside the job configuration ;) | 20:10 |
ahammond | I can extend the program to include a looping aspect. Shouldn't be that difficult. | 20:19 |
ahammond | so, how do I achieve the pattern of "run, wait a bit, run again…"? | 22:24 |
ahammond | I 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!