John Buttitto wrote On 05/08/06 02:09,:
> I seem to start out in a state where the service I started is being 
> montiroed. I know this by the fact that I can send a signal to the newly 
> running service, it dies and is then restarted. Some how I get into a state 
> where I can killl the service manually and it no longer restarts. The svcs 
> command shows it still online and running.
I don't know what's going on here.  Perhaps you can tell us more, what
process, what you did, etc.

> 
> I manually unregister the service and re-register it and it almost always 
> picks it up again. 
> 
> 
> Does anyone a:
> 
> 1) A way that if the process is restarted manually it can be certain of being 
> monitored.

I don't think you can do this.  SMF uses contract to monitor service
processes and their exits.  I think Liane wrote somewhere (here? blog?)
that you need to have a contract ID before SMF starts up your service
and there's no way SMF can grab a service that's been started manually
and make a contract for it.

> 2) Tell if the process is being monitored still and which PID it is watching?

svcs -p <service> to see which processes are part of the service.

CT


Reply via email to