Danek Duvall schrieb:
> On Thu, Jan 15, 2009 at 09:05:17AM +0100, Joachim Lingner wrote:
>
>   
>> Thanks Danek for clarifying. But one last question. You state that the
>> service runs asynchronously. But is this also the case when uninstalling?
>> If so, could it happen that the service itself  is being uninstalled
>> before it has been run?
>>     
>
> On uninstallation, services are disabled before files are removed, so
> anything required to shut the service down will still be around when we do
> so.
>
> Unregistering the service from SMF still isn't entirely clean, I think.
> Bart may be able to address that in more detail.
>
> Danek
>   
Thanks, Danek.
Bart could you tell me if the following could work:

I build the package by using pkgsend in this order

1. the smf service
2. file A restart_fmri=service
3. file B restart_fmri=service

During install the service will be invoked once  file A and B are 
installed. This does not work currently because of issue
5597 service update failure during install

Uninstallation happens in reverse. So I assume the behaviour is this:

1. file B is removed
2. file A is removed
3. the service is restarted (stop/start) and then disabled
4. the service is removed

In my case the service expects that  A and B are already removed.

Is my assumption right?

Thanks,
Joachim

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to