Todd Pisek wrote:
Since I haven't received an answer to my previous question regarding IPS
and actuators (as described in pkg(5)), I'll try to reword my question
in a more specific manner.
I have an SVR4 package that has several SMF services. According to
pkg(5), I should be able to specify which of my SMF fmri's are
associated with disable_fmri, refresh_fmri, restart_fmri, and suspend_fmri.
Other than their mention in pkg(5), I cannot find any information on
actuators or how to specify them in any other man pages. In addition,
none of the following appear in solaris.py:
disable_fmri
refresh_fmri
restart_fmri
suspend_fmri
Are actuators implemented in 2009.06, and if so, how do I specify their
association to a package's SMF fmri's?
We do this as part of the import process. The -G filename option causes
the specified filename to be read in as a series of import commands at
the end of each package import; this allows us to add operations to each
package import easily (e.g. w/o editing thousands of package import
files). A few moments perusal of the Makefile in src/util/distro-import
in the pkg gate shows that we're currently importing several files
as shown below... note that the filename matching rules follow python
fnmatch rules rather than shell glob syntax.
reboot:
# tag kernel binaries as needing reboot
chattr_glob kernel/* type file reboot_needed=true
chattr_glob kernel/*.conf type file reboot_needed=false
chattr_glob platform/* type file reboot_needed=true
chattr_glob platform/*.conf type file reboot_needed=false
# See SUNWcsl for tags for other libraries
smf_manifests
# make sure manifest changes are picked up
chattr_glob var/svc/manifest/*.xml type file
restart_fmri=svc:/system/manifest-import:default
fonts
# make sure installation/removal/changes of fonts causes rebuild of font
cache
# since these files are getting moved around from /usr/openwin to /usr/X11,
# use a pattern that will match both locations
chattr_glob */fonts/*.pcf type file
restart_fmri=svc:/application/font/fc-cache:default
chattr_glob */fonts/*.pcf.gz type file
restart_fmri=svc:/application/font/fc-cache:default
chattr_glob */fonts/*.ttf type file
restart_fmri=svc:/application/font/fc-cache:default
gnome
# gnome services; these show up in lots of packages, so do them globally
# rather than per package
chattr_glob etc/gconf/schemas/*.entries type file
restart_fmri=svc:/application/desktop-cache/gconf-cache:default
chattr_glob etc/gconf/schemas/*.schemas type file
restart_fmri=svc:/application/desktop-cache/gconf-cache:default
chattr_glob usr/lib/amd64/gtk-2.0/*/immodules/*.so type file
restart_fmri=svc:/application/desktop-cache/input-method-cache:default
chattr_glob usr/lib/amd64/gtk-2.0/*/loaders/*.so type file
restart_fmri=svc:/application/desktop-cache/pixbuf-loaders-installer:default
chattr_glob usr/lib/gtk-2.0/*/immodules/*.so type file
restart_fmri=svc:/application/desktop-cache/input-method-cache:default
chattr_glob usr/lib/gtk-2.0/*/loaders/*.so type file
restart_fmri=svc:/application/desktop-cache/pixbuf-loaders-installer:default
chattr_glob usr/share/applications/* type file
restart_fmri=svc:/application/desktop-cache/gconf-cache:default
chattr_glob usr/share/icons/* type file
restart_fmri=svc:/application/desktop-cache/icon-cache:default
chattr_glob usr/share/mime/packages/* type file
restart_fmri=svc:/application/desktop-cache/mime-types-cache:default
variants
#tag package as containing specified architecture variant
add set name=variant.arch value=$(ARCH)
#indicate that we're adding zone variants (no nonglobal files for now)
add set name=variant.opensolaris.zone value=global value=nonglobal
--
Bart Smaalders Solaris Kernel Performance
[email protected] http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss