network/location is not enabled by default. It is started temporarily
my nwamd or network/physical:default.
The following code in main.c in supposed to start network/location, but
it doesn't.
/*
* Restore/Restart/Enable NETWORK_LOCATION_SVC
*/
(void) smf_restore_instance(NETWORK_LOCATION_SVC);
(void) smf_restart_instance(NETWORK_LOCATION_SVC);
(void) smf_enable_instance(NETWORK_LOCATION_SVC, SMF_TEMPORARY);
Here the situation:
If NETWORK_LOCATION_SVC = "svc:/network/location", then all three return
"invalid argument". ":default" is missing.
If NETWORK_LOCATION_SVC = "svc:/network/location:default", then
_restore_() returns "required constraint is missing" => i think it means
network/location is not in maintenance mode. The other two calls return
"entity not found" meaning FMRI is valid but there's no matching instance.
I changed the <create_default_instance ...> in network-location.xml to
<single_instance /> and also <instance ...> </instance> and in both
cases I am getting the same errors.
Any ideas?
Thanks,
Anurag