Re: 'svc -d' doesn't wait for exit
[email protected] (Paul Jarc)
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Brian Reichert <[email protected]> wrote: > 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'? That's the simplest way. > Or, has someone already engineered a patch to supervise? It doesn't > _seem_ like a difficult change to make... You would need to change (or wrap) svc, but not necessarily supervise. supervise already learns when the service exits via SIGCHLD, and it updates supervise/status at that time. It cold also be modified to send a notification of the update via a new named pipe under supervise/, but in any case svc would have to be changed (or wrapped) to wait for the update. paul