Lines Matching refs:fmri
269 log_invalid_cfg(const char *fmri)
273 fmri);
289 * Given the instance fmri, obtain the corresonding scf_instance.
294 fmri_to_instance(char *fmri, scf_instance_t **scf_instp)
301 error_msg(gettext("Failed to get instance for %s"), fmri);
312 if (scf_handle_decode_fmri(h, fmri, NULL, NULL, scf_inst,
325 error_msg(gettext("Failed to get instance for %s"), fmri);
356 if (((sret = store_rep_vals(inst->cur_istate_rep, inst->fmri,
358 ((sret = store_rep_vals(inst->next_istate_rep, inst->fmri,
361 "repository: %s"), inst->fmri, scf_strerror(sret));
363 if (fmri_to_instance(inst->fmri, &scf_inst) == 0) {
384 inst->fmri);
389 inst->fmri);
397 if ((ret = restarter_set_states(rst_event_handle, inst->fmri,
402 "repository: %s"), inst->fmri, strerror(ret));
694 "seconds."), inst->fmri,
713 const char *fmri = inst->fmri;
722 fmri, proto, strerror(errno));
728 "instance %s, proto %s: %s"), fmri, proto, strerror(errno));
738 "service instance %s, proto %s: %s"), fmri,
749 "service instance %s, proto %s: %s"), fmri, proto,
763 "proto %s: %s"), fmri, proto, strerror(errno));
777 "proto %s: %s"), fmri, proto, strerror(errno));
791 " size %d", fmri, qlen);
902 instance->fmri);
917 "%s, transitioning to maintenance"), instance->fmri);
925 "degraded"), instance->fmri);
1126 unregister_rpc_service(instance->fmri, pi->ri);
1127 if (register_rpc_service(instance->fmri, pi->ri) ==
1198 unregister_rpc_service(instance->fmri, pi->ri);
1292 (void) store_rep_vals(ins->start_pids, ins->fmri,
1297 (void) store_rep_vals(ins->non_start_pid, ins->fmri,
1316 (void) store_rep_vals(inst->start_pids, inst->fmri,
1320 (void) store_rep_vals(inst->non_start_pid, inst->fmri,
1326 create_instance(const char *fmri)
1331 ((ret->fmri = strdup(fmri)) == NULL))
1391 free(inst->fmri);
1411 if (((ret = retrieve_rep_vals(inst->cur_istate_rep, inst->fmri,
1413 ((ret = retrieve_rep_vals(inst->next_istate_rep, inst->fmri,
1418 inst->fmri, scf_strerror(scf_error()));
1448 switch (retrieve_rep_vals(inst->start_pids, inst->fmri,
1456 "instance %s from repository: %s"), inst->fmri,
1479 inst->fmri);
1485 (void) store_rep_vals(inst->start_pids, inst->fmri, PR_NAME_START_PIDS);
1543 if ((inst->config = read_instance_cfg(inst->fmri)) == NULL) {
1544 log_invalid_cfg(inst->fmri);
1603 if ((cfg = read_instance_cfg(inst->fmri)) != NULL) {
1672 log_invalid_cfg(inst->fmri);
1901 instance->config = read_instance_cfg(instance->fmri);
1907 log_invalid_cfg(instance->fmri);
1938 instance->config = read_instance_cfg(instance->fmri);
1959 if ((read_enable_merged(instance->fmri,
1964 log_invalid_cfg(instance->fmri);
2047 char *fmri;
2085 if ((fmri = malloc(fmri_size)) == NULL) {
2089 sz = restarter_event_get_instance(event, fmri, fmri_size);
2095 if (strcmp(instance->fmri, fmri) == 0)
2102 debug_msg("New instance to manage: %s", fmri);
2104 if (((instance = create_instance(fmri)) == NULL) ||
2108 free(fmri);
2116 instance->fmri, strerror(err));
2118 free(fmri);
2133 instance->config = read_instance_cfg(instance->fmri);
2135 log_invalid_cfg(instance->fmri);
2142 free(fmri);
2146 instance->fmri);
2155 instance->fmri);
2251 inst->pending_rst_event, inst->fmri);
2273 inst->fmri);
2306 inst->fmri, status);
2481 if (smf_refresh_instance(inst->fmri) < 0) {
2483 inst->fmri, scf_strerror(scf_error()));
2749 methods[method].name, instance->fmri);
2828 error_msg(msg, methods[method].name, instance->fmri);
2863 methods[method].name, instance->fmri, errf,
2885 error_msg(msg, methods[method].name, instance->fmri);
2920 methods[method].name, instance->fmri, strerror(errno));
2975 rv->val, instance->fmri, strerror(errno));
3025 instance->fmri);
3051 instance->fmri, strerror(ret));
3070 if ((mthd_ctxt = read_method_context(instance->fmri,
3078 if (!passes_basic_exec_checks(instance->fmri, methods[method].name,
3084 if (contract_prefork(instance->fmri, method) == -1)
3094 methods[method].name, instance->fmri, strerror(serrno));
3124 instance->fmri);
3193 fd = tlx_accept(instance->fmri, (tlx_info_t *)pi,
3280 instance->fmri, cfg->conn_rate_offline);
3332 instance->fmri);
3404 "maintenance"), instance->fmri);
3581 instance->fmri);
3849 char *fmri;
3852 * check if the instance fmri environment variable has been set by
3855 return (((fmri = getenv("SMF_FMRI")) != NULL) &&
3856 (strcmp(fmri, INETD_INSTANCE_FMRI) == 0));