Huafeng Lu <Huafeng.Lv at Sun.COM> writes:
> ? 2008?10?08? 01:47, Jordan Brown ??:
>> The best answer is to deliver the manifest in a package, and set the 
>> file class for the manifest to "manifest".  System-supplied class action 
>> scripts will then do the right things on install and uninstall.
>
> Hi Jordon,
>
> Yes I'm putting these file in a package, so such "svccfg delete" and 
> "svccfg import" operations should be done as part of "pkgrm" and 
> "pkgadd". Will you please provide more details about "file class" and 
> "system-supplied class action scripts"? Any examples? Thanks.
> --
> Huafeng
>

Here's a line from one of my packages' pkgmap file:

1 f manifest var/svc/manifest/site/bitlbee.xml 0644 root bin 1704 7356 
1223433811

This causes the manifest to be imported automatically on pkgadd and the
service to be deleted on pkgrm (but requires a manual disable first).

HTH

Boyd

Reply via email to