Interesting.  It worked OK when I did the imports by hand, but then 
failed when I put the files into a package.

It seems that order matters.  If you import runonce.xml first, then all 
is well.  If you import the application's manifest (which contains only 
a little bit of instance data), it fails; the instance doesn't get all 
of the properties from the service.

Works:
# svcprop runonce:*
method_context/environment astring RUN=/opt/SUNWxvm-server-init/install\ -a
method_context/project astring :default
method_context/resource_pool astring :default
method_context/working_directory astring :default
general/enabled boolean false
general/entity_stability astring Unstable
fs-local/entities fmri svc:/system/filesystem/local
fs-local/grouping astring require_all
fs-local/restart_on astring none
fs-local/type astring service
network-service/entities fmri svc:/network/service
network-service/grouping astring require_all
network-service/restart_on astring none
network-service/type astring service
name-services/entities fmri svc:/milestone/name-services
name-services/grouping astring require_all
name-services/restart_on astring refresh
name-services/type astring service
startd/duration astring transient
start/exec astring /lib/svc/method/runonce
start/timeout_seconds count 0
start/type astring method
stop/exec astring :true
stop/timeout_seconds count 0
stop/type astring method
tm_common_name/C ustring xVM\ Server\ first-time\ boot\ initialization
restarter/auxiliary_state astring none
restarter/next_state astring none
restarter/state astring disabled
restarter/state_timestamp time 1215055005.336805000
restarter_actions/refresh integer

Fails:
# svcprop runonce:*
method_context/environment astring RUN=/opt/SUNWxvm-server-init/install\ -a
method_context/project astring :default
method_context/resource_pool astring :default
method_context/working_directory astring :default
general/enabled boolean false
restarter/auxiliary_state astring none
restarter/next_state astring none
restarter/state astring disabled
restarter/state_timestamp time 1215055068.827061000
restarter_actions/refresh integer

I don't have the option of controlling the import order - I need to have 
these processed during boot.  Ah well, guess I have to cram them 
together for my application, for now.

Reply via email to