Hi, 

I'd like to do something similar, but that workaround doesn't quite make sense 
to me. I need a bit more context I think.

Here is the workaournd:

[code]
if svcs -l instance_fmri | grep '^enabled.*true'; then
        svcadm enable -t instance_fmri
else
        svcadm disable -t instance_fmri
fi
svccfg -s instance_fmri setprop general/enabled = false
# or true
[/code]


I'd like to import a svc that starts out disabled that will be run upon next 
boot.
Would I execute those lines from the workaround right after my import? From 
within my service? 

What does that "# or true" line mean? When would that be needed?

Thanks
Chris Dodd
 
 
This message posted from opensolaris.org

Reply via email to