Quoth Christine Tran on Tue, Feb 19, 2008 at 07:21:24PM -0500:
> David Bustos wrote:
>                timeout_seconds='60'>
> > 
> > :kill doesn't work for transient services.  The service's log should
> > include an error like "Invalid use of :kill as stop method for transient
> > service."
> 
> Really?  There's been at least once case where I thought this would have 
> been helpful.  A transient service fails to complete, and examining the 
> service shows lingering processes.  Would have been nice to be able to 
> :kill all of these.  Not saying I couldn't do it in other ways, but 
> where's the harm?

Do you mean processes that the start method leaves running on purpose,
or because of some error?  In the error case, the processes should all
be members of the same process contract, presuming that they don't
create their own contracts.  You should be able to use "pkill -c" to
kill all of the processes.  We don't provide an easy way to determine
the contract ID, though, unless it's in the log.

:kill can only be used in the stop method, though, which we only use if
the start method succeeded.  And then we assume that the service is not
implemented by processes, so we discard the process contract ID and
can't know what to :kill.


David

Reply via email to