Jon Krueger wrote:
> OK, our service is started only from SMF.
> I've never even tried to start it myself, outside SMF.

Hm.  I guess I was thrown off by the code you quoted by your start 
method to check if the daemon is running already.

> 
> Our service is not transient, nor do we want it to be.
> 
> How do I debug this? What do I look for, to see why
> restart is spinning?

We've diagnosed why the restart is spinning from the logs you included., 
right?  It's spinning because your method returns success after not 
actually launching the daemon.

You haven't quoted what check leads your start method saying the service 
is already enabled, but my best guess is that the check is erroneous. 
I'd start by  simply removing that check.

svcadm restart runs the stop method of the service, then the start 
method.  The start method always needs to do something to start a 
non-transient service.

liane

Reply via email to