the one-second sleep between invocations was moved to after the actual
invocation. This sleep could be interrupted by a SIGCHLD in the case
of a failing service, and the service could be restarted way more than
the documented once-per-second. Move the sleep back before the fork(),
just don't sleep before the very first fork, so the service starts faster.
Silence by: Daniel J. Bernstein (no telling if he'll fix this in later
daemontools releases, so I guess we'll have to do it as part
of our port..)
Approved by: nbm (maintainer)
PR. I'll leave the creation of the directory, whatever it may be, to
the user.
PR: ports/19191
Submitted by: Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>