Lines Matching defs:instance

42  *   rather than service instance), GVT_FILE for files (which services may
49 * dgraph_add_instance() for each instance in the repository. The function
51 * a GVT_INST vertex named by the FMRI of the instance, and sets up the edges.
52 * The resulting web of vertices & edges associated with an instance's vertex
55 * - an edge from the GVT_SVC vertex for the instance's service
57 * - an edge to the GVT_INST vertex of the instance's resarter, if its
60 * - edges from other GVT_INST vertices if the instance is a restarter
62 * - for each dependency property group in the instance's "running"
64 * instance and the name of the property group
70 * - edges from GVT_GROUP vertices for each dependent instance
79 * The properties of an instance fall into two classes: immediate and
112 * When an instance of a service managed by SMF changes state, svc.startd may
117 * SMF repository for the service/instance they refer to. System-wide
118 * notification parameters are stored in the global instance.
124 * dgraph_vertex_t gv_stn_tset for service/instance and in the global
984 case GVT_INST: /* instance dependency */
1019 * - GVT_GROUP - GVT_INST: instance dependency
1155 * A GVT_SERVICE vertex can only be in the subgraph if another instance
1467 * satisfied or any service instance which is configured, enabled, and not in
1578 * Determine if all the dependencies are satisfied for the supplied instance
1593 * a group vertex, or of an instance vertex.
1603 * A dependency on an instance with GV_DEATHROW
1705 * instance transitions between offline -> online, or from !running ->
1706 * maintenance, as well as when an instance is removed from the graph.
1908 "%s: instance is already going down.\n",
2004 /* disable the instance now if there is nothing else to offline */
2036 * instance is a leaf when all its dependents are down.
2040 "instance %s for %s.\n",
2161 * The fmri doesn't specify an instance - translate
2345 const char *scope, *service, *instance, *pg;
2358 "dependency's type of instance %s.\n", fmri,
2381 "dependency's type of instance %s.\n", fmri,
2393 /* Determine if the FMRI is a property group or instance */
2395 &instance, &pg, NULL) != 0) {
2408 "service or instance.\n", info->pg_name,
2415 service, instance ? ":" : "", instance ? instance :
2419 scope, service, instance ? ":" : "", instance ?
2420 instance : "");
2425 err = graph_insert_vertex_unconfigured(cfmri, instance ?
2426 GVT_INST : GVT_SVC, instance ? 0 : DEPGRP_REQUIRE_ANY,
2435 if (instance != NULL)
2789 * graph_edge_t's which point to the service vertices or the instance
3009 * inst. If doing so would create a cycle, log a message and put the instance
3169 * If the instance fmri is in the deathrow list then set the
3172 * repository for this instance fmri.
3180 * non-persistent repository for this instance fmri.
3221 * libscf_get_deathrow() sets deathrow to 1 only if this instance
3248 * If the instance does not have a restarter property group,
3476 * We didn't register the instance with the restarter, so we
3673 * the whole OS instance.
4094 * Fetch whether the instance should be enabled from inst and send _ENABLE or
4098 * instance in maintenance. Don't send _START or _STOP until we get a state
4156 * Locate the vertex for this property group's instance. If it doesn't exist
4158 * the restarter for the instance, and if it has changed, send
4161 * the new restarter. Then fetch whether the instance should be enabled, and
4165 * Returns 0 on success, ENOTSUP if the pg's parent is not an instance,
4166 * ECONNABORTED on repository disconnection, ECANCELED if the instance is
4167 * deleted, or -1 if the instance's general property group is deleted or if
4551 * Of the transitive instance dependencies of v, offline those which are
4560 /* If v isn't an instance, recurse on its dependencies. */
4597 * Of the transitive instance dependencies of v, disable those which are not
4616 /* If v isn't an instance, recurse on its dependencies. */
4779 * Otherwise set its state to state. If the instance has entered a state
4782 * instance should be enabled, send _ENABLE. Offline: if the instance should
4784 * _START. Online, Degraded: if the instance wasn't running, update its start
4922 * evaluation if an instance is changing state, we're not halfway through
5022 * Deleting an instance can both satisfy and unsatisfy dependencies,
5450 /* If the instance is already disabled, skip it. */
5493 * Quit if we are in an optional dependency group and the instance
6012 "\"%s\" does not specify an instance. "
6261 * per-instance property group, with each action being a single property
6310 "The instance must have been removed.\n", inst_name);
6548 * instance, so get the fmri and compare. Plus, once we know it's
6757 * process_delete() deletes an instance from the dgraph if 'fmri' is an
6758 * instance fmri or if 'fmri' matches the 'general' property group of an
6759 * instance (or the 'general/enabled' property).
6773 /* Determine if the FMRI is a property group or instance */
6784 * 'general/enabled' property then the whole instance
6799 * Because the instance has already been deleted from the
6801 * the instance FMRI however we can easily reconstruct it
6900 * Service, instance, or pg deleted.