Lines Matching refs:service
34 * so lxml_get_service() fetches a service from the XML file into the
157 "service", /* SC_SERVICE */
277 if (xmlStrcmp(type, (const xmlChar *)"service") == 0)
832 * Property groups can go on any of a service, an instance, or a template.
886 * Dependency groups, execution methods can go on either a service or an
1162 * type: service / path /host
1246 * another service, but we can't do that here; we'll have to wait until the
1248 * in the other service to the entity's dependent list.
1352 SCF_TYPE_ASTRING, 1, "service");
1633 "Can't set events for global service\n"));
1666 lxml_get_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr loctext,
1692 xml_lang_attr, extra, source, service->sc_name);
1703 service->sc_name);
1709 service->sc_name);
1747 lxml_get_all_loctext(entity_t *service, pgroup_t *pg, xmlNodePtr container,
1764 if (lxml_get_loctext(service, pg, cursor, pn_format,
1771 service->sc_name);
1789 lxml_get_cardinality_attribute(entity_t *service, xmlNodePtr cursor,
1819 attr_name, prop_name, service->sc_name);
1828 attr_name, prop_name, service->sc_name);
1847 lxml_get_tm_cardinality(entity_t *service, pgroup_t *pg, xmlNodePtr cursor)
1857 r = lxml_get_cardinality_attribute(service, cursor, min_attr,
1863 r = lxml_get_cardinality_attribute(service, cursor, max_attr,
1871 service->sc_fmri);
1905 * SCF_GROUP_TEMPLATE. This property group will be created in service if
1909 lxml_get_tm_common_name(entity_t *service, xmlNodePtr common_name)
1916 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_COMMON_NAME,
1919 return (lxml_get_all_loctext(service, pg, common_name, LOCALE_ONLY_FMT,
1927 * SCF_GROUP_TEMPLATE. This property group will be created in service if
1931 lxml_get_tm_description(entity_t *service, xmlNodePtr description)
1938 pg = internal_pgroup_find_or_create(service, SCF_PG_TM_DESCRIPTION,
1941 return (lxml_get_all_loctext(service, pg, description,
2050 lxml_get_tm_internal_seps(entity_t *service, pgroup_t *pg, xmlNodePtr seps)
2063 service->sc_name);
2069 service->sc_name);
2079 lxml_get_tm_manpage(entity_t *service, xmlNodePtr manpage)
2105 pg = internal_pgroup_find(service, pgname, SCF_GROUP_TEMPLATE);
2112 pg = internal_pgroup_find_or_create(service, pgname,
2141 lxml_get_tm_doclink(entity_t *service, xmlNodePtr doc_link)
2158 pg = internal_pgroup_find_or_create(service, pgname,
2177 lxml_get_tm_documentation(entity_t *service, xmlNodePtr documentation)
2188 (void) lxml_get_tm_manpage(service, cursor);
2191 (void) lxml_get_tm_doclink(service, cursor);
2195 "for service \"%s\"\n"),
2196 cursor->name, service->sc_name);
2221 lxml_get_tm_include_values(entity_t *service, pgroup_t *pg,
2233 "service.\n"), include_values->name, type_attr,
2234 service->sc_name);
2261 verify_range(entity_t *service, xmlNodePtr range, char *min, char *max)
2298 "element in service %s.\n"), limit[i],
2299 (char *)range->name, service->sc_name);
2313 "in service %s.\n"), (char *)range->name,
2314 service->sc_name);
2331 lxml_get_tm_range(entity_t *service, pgroup_t *pg, xmlNodePtr range,
2345 "service %s.\n"), (char *)range->name, max_attr,
2346 service->sc_name);
2351 "service %s.\n"), (char *)range->name, min_attr,
2352 service->sc_name);
2354 if (verify_range(service, range, min, max) != 0) {
2365 "of %s.\n"), (char *)range->name, service->sc_name);
2416 * service - Information about the service that is being
2429 lxml_get_tm_value_element(entity_t *service, pgroup_t *pg, xmlNodePtr value,
2451 "service.\n"), (char *)value->name, name_attr,
2452 service->sc_name);
2465 "too long for value \"%s\" in the %s service.\n"),
2466 extra, value_name, service->sc_name);
2473 "%u characters too long for %s in service %s\n"),
2474 extra, (char *)value->name, service->sc_name);
2481 "%u characters too long for %s in service %s\n"),
2482 extra, (char *)value->name, service->sc_name);
2492 r = lxml_get_all_loctext(service, pg, cursor,
2496 r = lxml_get_all_loctext(service, pg, cursor,
2501 "of service %s\n"), (char *)cursor->name,
2502 (char *)value->name, service->sc_name);
2519 lxml_get_tm_choices(entity_t *service, pgroup_t *pg, xmlNodePtr choices)
2533 (void) lxml_get_tm_include_values(service, pg, cursor,
2537 r = lxml_get_tm_range(service, pg, cursor,
2543 r = lxml_get_tm_value_element(service, pg, cursor,
2561 "choices for service %s.\n"), cursor->name,
2562 service->sc_name);
2579 lxml_get_tm_constraints(entity_t *service, pgroup_t *pg, xmlNodePtr constraints)
2593 r = lxml_get_tm_range(service, pg, cursor,
2599 r = lxml_get_tm_value_element(service, pg, cursor,
2617 "constraints for service %s.\n"), cursor->name,
2618 service->sc_name);
2638 lxml_get_tm_values(entity_t *service, pgroup_t *pg, xmlNodePtr values)
2653 (char *)values->name, service->sc_name);
2655 r = lxml_get_tm_value_element(service, pg, cursor, &name_value);
2696 lxml_get_tm_prop_pattern(entity_t *service, xmlNodePtr prop_pattern,
2724 service->sc_name);
2730 "valid.\n"), prop_pattern_name, service->sc_name);
2740 service->sc_name, extra - max_scf_name_len);
2747 pg = internal_pgroup_create_strict(service, pg_name,
2752 service->sc_name);
2782 r = lxml_get_tm_cardinality(service, pg, cursor);
2787 r = lxml_get_tm_choices(service, pg, cursor);
2792 (void) lxml_get_all_loctext(service, pg, cursor,
2796 r = lxml_get_tm_constraints(service, pg, cursor);
2801 (void) lxml_get_all_loctext(service, pg, cursor,
2805 r = lxml_get_tm_internal_seps(service, pg, cursor);
2810 (void) lxml_get_all_loctext(service, pg, cursor,
2814 (void) lxml_get_tm_values(service, pg, cursor);
2827 "for service \"%s\"\n"), cursor->name,
2828 service->sc_name);
2866 * be specifed in the service bundle DTD. This function verifies that
2870 * template block is in a service declaration.
2900 * service object.
2906 "service declaration.\n"), target_attr);
2929 "restarter service\n"), target_attr);
2936 * global (SCF_SERVICE_GLOBAL) service.
2942 "service entity.\n"), target_attr, all_value);
2947 "value of \"%s\" but is in the \"%s\" service. "
2949 "in the global service.\n"),
2959 lxml_get_tm_pg_pattern(entity_t *service, xmlNodePtr pg_pattern)
2985 "property for %s\n"), service->sc_name);
2996 "%d bytes too long\n"), service->sc_name,
3006 "for %s is invalid\n"), name, service->sc_name);
3023 "for %s is %d bytes too long\n"), service->sc_name,
3032 pg = internal_pgroup_create_strict(service, pg_name,
3039 service->sc_name);
3043 type, service->sc_name);
3049 name, service->sc_name);
3053 name, type, service->sc_name);
3066 if (verify_pg_pattern_attributes(service, pg) != 0) {
3068 service->sc_name);
3084 (void) lxml_get_all_loctext(service, pg, cursor,
3088 (void) lxml_get_all_loctext(service, pg, cursor,
3092 r = lxml_get_tm_prop_pattern(service, cursor,
3099 "for service \"%s\"\n"), cursor->name,
3100 service->sc_name);
3106 internal_detach_pgroup(service, pg);
3117 lxml_get_template(entity_t *service, xmlNodePtr templ)
3128 (void) lxml_get_tm_common_name(service, cursor);
3131 (void) lxml_get_tm_description(service, cursor);
3134 (void) lxml_get_tm_documentation(service, cursor);
3137 if (lxml_get_tm_pg_pattern(service, cursor) != 0)
3142 "for service \"%s\"\n"),
3143 cursor->name, service->sc_name);
3151 lxml_get_default_instance(entity_t *service, xmlNodePtr definst)
3172 i->sc_op = service->sc_op;
3195 return (internal_attach_entity(service, i));
3200 * service. If op is SVCCFG_OP_APPLY (i.e., apply a profile), set the
3207 lxml_get_instance(entity_t *service, xmlNodePtr inst, bundle_type_t bt,
3227 r = internal_attach_entity(service, i);
3343 * Check to see if the service should allow the upgrade
3346 * If the service exists and does not have a manifestfiles
3348 * the service.
3350 * If the service doesn't exist or the service exists
3361 lxml_check_upgrade(const char *service)
3381 if (scf_scope_get_service(sc, service, svc) != SCF_SUCCESS) {
3402 * Translate a service element into an internal instance/property tree, added
3434 * Set the global missing type to false before processing the service
3440 * Now that the service is created create the manifest
3441 * property group and add the property value of the service.
3544 "illegal element \"%s\" on service \"%s\"\n"),
3551 * Now that the service has been processed set the missing type
3552 * for the service. So that only the services with missing
3629 semerr(gettext("service bundle lacks name attribute\n"));
3662 * Load an XML tree from filename and translate it into an internal service
3687 * validate service profiles (i.e. the apply path).
3719 semerr(gettext("document DTD unknown; not service bundle?\n"));
3730 semerr(gettext("document is not a service bundle\n"));