Jon Krueger wrote:
>> Unless if you declare your service as 'transient',
>> svc.startd expects a process to still be running when the start method
>> exits.)
> 
> That seems related:
> 
> [ Jun  3 00:47:18 Executing start method ("/lib/svc/method/svc-labeld 
> start") ]
> /lib/svc/method/svc-labeld: already enabled. Exiting.
> [ Jun  3 00:47:19 Method "start" exited with status 0 ]
> [ Jun  3 00:47:19 Stopping because all processes in service exited. ]
> 
> The second line comes from my start method here:
> 
>                     echo "$0: already enabled. Exiting."
>                     exit $SMF_EXIT_OK
> 
> Our process isn't transient. Should be present.
> 
> How about I instrument a little checking:
> 
>                     echo "$0: already enabled. Exiting."
>                     ps -aef | grep -labeld
>                     exit $SMF_EXIT_OK
> 
> If the start method is spinning, would I expect to see
> no matching process at that point?
> 

See Liane's response for answers. A couple more follow up questions.

labeld seems to be started outside of SMF. How is it started? Is it 
reasonable to simply start your smf service whenever labeld is needed?

-tony

Reply via email to