'svc -d' doesn't wait for exit

Brian Reichert <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
According to :

  http://cr.yp.to/daemontools/svc.html

  -d: Down. If the service is running, send it a TERM signal and
  then a CONT signal. After it stops, do not restart it.

To me, there is the implication that svc will wait until the supervised
process actually exits, but inspection of supervise.c reveals that
my assumption is incorrect.

What I want, I guess, is a variant of 'svc -d' that will not return
until the supervised process has indeed gone down.

Is there a preferred mechanism to accomplish this, other than a
busy-wait on checking the output of 'svstat'?

Or, has someone already engineered a patch to supervise?  It doesn't
_seem_ like a difficult change to make...

(Googling didn't quickly reveal an answer, so if someone has a
concrete pointer, or a good suggestion of search terms, I can pursue
this myself.)

Thanks for any feedback...

-- 
Brian Reichert				<[email protected]>
55 Crystal Ave. #286			Daytime number: (603) 434-6842
Derry NH 03038-1725 USA			BSD admin/developer at large
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.