hi folks

quick question - i'm working on service conversions for the Solaris routing 
services (in.routed, in.ripngd), and on enhancing routeadm (1M), the routing 
management tool, to support listing, enabling/disabling, modifying properties 
of these services a la inetadm.

one problem with this is that these operations would fail during upgrade when 
SMF is unavailable. given that routeadm is often used in jumpstart scripts, the 
solution i'd like to adopt is for routeadm to assume upgrade on detecting SMF 
unavailability in conjunction with an alternate root having been set (routeadm 
supports setting an alternate root via chroot). if this is the case, the SMF 
commands are appended to <alternate_root>/var/svc/profile/upgrade.

does this solution seem ok? (by the way, i assume a good test for SMF 
availability is calling scf_handle_create(), getting a failure with 
SCF_ERROR_NO_SERVER set as errorcode?) thanks for your help!

alan
This message posted from opensolaris.org

Reply via email to