Comment 3 for bug 252997

Revision history for this message
Jeff Oliver (jeffrey-oliver) wrote : Re: respawn should try again after a while?

Well, there is a question in the "Answers" tab, where someone has some sort of service that connects to another server. It sounds like they need a resting time between the service completing its transaction and being allowed to start a new connection. They complain that they cannot use the sleep, but perhaps they're putting it in the wrong place. They mention post-stop, you put it in start.

My personal requirement is a little bit off the wall. I'm trying to get upstart on my embedded linux box. The services run on this particular box are not ordinary. Furthermore, I have situations where 3rd-party companies install and run other service on this box as well. Everyone is adjusted to how the box operates currently. There is a service watchdog process running on the box currently, that I'm hoping upstart can simply replace.

And finally, the programming practices of the various software suppliers for the embedded server I work on are very amaturish. I can't say for sure that everyone knows what pid files are and what they are for. Each application developer is in control of their own job file. Having a stanza in the job file for causing a delay would allow for poor programming practices in the service itself.

In any case, I can post my changes. Take it or leave it. If it gets merged into the main line, fine, if not, fine. I'm here trying to improve it as best as I can. My usage case is very unique and I'm trying to generalize it as best as I can.