I'm looking for some help creating an SMF service that will move
user-installed
files (ruby gems) from directories that will be removed in the ruby-18
package
(the old gem_home location to be obsoleted) to
other directories which (mostly) already exist in ruby-18 (the new
default gem_home directory).
The service has a dependency on svc:/milestone/self-assembly-complete
However, when I install the package, the script does not seem to run.
I am also wondering if an SMF service is the right way to go about doing
this.
Any suggestions on the contents of my SMF manifest
and script and how they are set up would also be appreciated.
Here is the bug:
http://monaco.us.oracle.com/detail.jsf?cr=7146445
I have made a stab at creating an SMF manifest
(Solaris/move-rubygems.xml) and start method script
(Solaris/move-rubygems) and adding them to my ruby-18.p5m package manifest.
Here is a webrev of the preliminary changes I've made:
file:///net/sfwcfi.us.oracle.com/builds/apchin/ruby-7146445/webrev-1/index.html
Although my SMF manifest and method script are installed, they don't
seem to fire up
when I would like them to--namely, before the package is installed, so
the files will be
moved to the target directory *before* their current location is
removed. This sounds like a
chicken-and-egg problem in that I need to install these SMF files before
they can be
run, but installing the package removes the files I need to move with
the script.
Should I be putting the SMF files in a separate package that needs to be
installed
before ruby-18? If SMF is the right method to use, what do I need to
change to make this work?
If not, what other method should I be using?
Note that I also played with using the "salvage-from" action on the
directories into which
I want to move the in files; salvage-from can be used to move unpackaged
contents from
a directory it names. I haven't been successful in getting this action
to work either.
Thanks in advance for any help,
April
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss