Lines Matching defs:instance

103  * or instance elements in XML manifests.
483 * snaplevel. Otherwise find the instance snaplevel.
488 * ECANCELED - instance containing snap was deleted
558 * a running snapshot, and that snapshot has an instance snaplevel, set pg to
560 * snapshot, set pg to the instance's current property group named name.
585 /* Search for an instance with a running snapshot. */
834 * instance, we must terminate our child and remove the temporary
1243 * Decode FMRI into a service or instance, and put the result in *ep. If
1311 * *ep, and set or clear *isservicep if it is a service or an instance.
1316 * SCF_ERROR_CONSTRAINT_VIOLATED - fmri is not a service or instance
1835 * Check the current level (instance) and then check the higher level
1837 * the instance that's going to "override" a service level property.
1931 * if instance get service and jump back
1955 * Finally, if at the instance level look at the service level.
2060 warn(gettext("Could not get a service for the instance "
2067 * Check to see truly at the instance level.
2117 * Check the current level (instance) and then check the higher level
2119 * the instance that's going to "override" a service level property.
2206 * If type is not found at the instance level then attempt to
2822 "Unknown op stored in the instance entity\n"));
3295 "specifies neither a service nor an instance.\n"),
5301 warn(gettext("%s has an instance with a \"%s\" "
6128 * Import an instance. If it doesn't exist, create it. If it has
6140 * EPERM - couldn't create temporary instance (permission denied)
6141 * - couldn't import into temporary instance (permission denied)
6146 * EROFS - couldn't create temporary instance (repository read-only)
6147 * - couldn't import into temporary instance (repository read-only)
6151 * EACCES - couldn't create temporary instance (backend access denied)
6152 * - couldn't import into temporary instance (backend access denied)
6156 * EINVAL - invalid instance name (error printed)
6160 * - temporary instance deleted (error printed)
6161 * - temporary instance changed (error printed)
6162 * - temporary instance already exists (error printed)
6163 * - instance deleted (error printed)
6164 * EBADF - instance has corrupt last-import snapshot (error printed)
6165 * - instance is corrupt (error printed)
6182 gettext("Temporary instance svc:/%s:%s was deleted.\n");
6183 const char * const emsg_tchg = gettext("Temporary instance svc:/%s:%s "
6186 "(instance \"%s\" was deleted.)\n");
6192 * create temporary instance (service was precreated)
6206 "changed unexpectedly (instance \"%s\" added).\n"),
6218 warn(gettext("Invalid instance name \"%s\".\n"),
6223 warn(gettext("Could not create temporary instance "
6520 /* create instance */
6535 "(instance \"%s\" added).\n"),
6542 warn(gettext("Could not create \"%s\" instance "
6561 * point for the real one from the temporary instance. Since
6562 * the contents is irrelevant, take it now, while the instance
6621 "(instance \"%s\" deleted).\n"),
6680 "(instance %s deleted).\n"),
6701 /* transfer snapshot from temporary instance */
6733 /* delete temporary instance */
6759 * When an instance is imported we end up telling configd about it. Once we tell
6761 * instance, the manifest may not specify the SCF_PG_RESTARTER (restarter)
6776 * the state of the EMI instance. If it is online it bails out and makes sure
6812 warn(gettext("Not validating instance %s:%s because EMI's "
6830 * We should always be able to get the instance. It should already
6838 warn(gettext("Failed to verify instance: %s\n"), inst->sc_name);
6870 "group for instance: %s\n"), inst->sc_name);
6906 "restarter property group of instance %s\n"),
6931 "group for instance: %s\n"), inst->sc_name);
6984 * - couldn't create instance (error printed)
6987 * - couldn't import instance (error printed)
6992 * - couldn't create instance (repository read-only)
6994 * - couldn't import instance (repository read-only)
6999 * - couldn't create instance (backend access denied)
7001 * - couldn't import instance (backend access denied)
7006 * - instance name is invalid (error printed)
7007 * - instance entity_t is invalid (error printed)
7017 * - instance added unexpectedly (error printed)
7018 * - instance deleted unexpectedly (error printed)
7022 * - temporary instance added, changed, or deleted (error printed)
7026 * - an instance is corrupt (error printed)
7027 * - an instance has a corrupt last-import snapshot (error printed)
7052 gettext("%s changed unexpectedly (instance \"%s\" deleted).\n");
7443 "(instance \"%s\" added).\n"), s->sc_fmri,
7450 warn(gettext("Service \"%s\" has instance with "
7457 warn(gettext("Could not create instance \"%s\" "
7793 "instance \"%s\".\n"), s->sc_fmri, imp_str);
8456 * lscf_import_{instance | service}_pgs
8520 * check to make sure the service and instance exist that the apply is
8766 * If the instance doesn't exist just
8767 * skip to the next instance and let the
8768 * import note the missing instance.
8820 * This instance still has missing types
8825 warn(gettext("Ignoring instance "
8839 "nonexistant instance "
8851 * If the instance does not have a general/enabled
8853 * instance is not a fully installed instance and
8856 * This could happen if a service/instance declares
8857 * a dependent on behalf of another service/instance.
8868 "partial instance "
10107 "a service or an instance.\n"), fmri);
10384 * Process notification parameters for a service or instance
10486 * Process the general property group for an instance.
10551 * Put an instance element for the given instance into selts.
10562 n = xmlNewNode(NULL, (xmlChar *)"instance");
10593 "framework; the instance will be marked "
10671 /* This is a default instance */
10911 * If some poor user has passed an exact instance FMRI, of the sort
10913 * and chop off the instance instead of failing.
10930 "instance portion of argument.\n"));
11194 inode = xmlNewChild(snode, NULL, (xmlChar *)"instance",
11241 * only cur_inst is NULL, and when an instance is selected, none are NULL.
11356 * Perform the validation of an FMRI instance.
11380 semerr(gettext("No instance selected\n"));
11413 gettext("Error validating the instance"),
11613 /* [ snapshot ] FMRI [: instance ] */
11752 * For now, we know that the next level is an instance. But
11867 semerr(gettext("Cannot add entities to an instance.\n"));
12073 * property group of a "dummy" entity (instance or service).
12077 * can also delete the entity. If the entity is an instance then
12078 * we must verify if this was the last instance for the service
12098 * If the entity is an instance and we've just deleted its last
12109 /* delete the instance */
12117 /* no need to refresh the instance */
12123 * last instance and the service doesn't have anymore propery groups
12257 * Returns 1 if the instance may be running, and 0 otherwise.
12336 * lscf_instance_delete() deletes an instance. Before calling
12337 * scf_instance_delete(), though, we make sure the instance isn't
12338 * running and delete dependencies in other entities which the instance
12340 * created for other entities, then instead of deleting the instance we
12345 * before suppressing the instance. If there is, then we must not remove them
12346 * now in case the instance is re-created otherwise the dependencies would be
12364 /* If we're not forcing and the instance is running, refuse. */
12392 * If the instance has some external dependencies then we must
12393 * keep them in case the instance is reimported otherwise the
12430 * All the pgs have been deleted for the instance except
12433 * snapshots associated with the instance.
12486 * pgs at the instance & service level before suppressing the service.
12528 * at the instance level.
13924 * First check if we're an instance and the
14765 * Look for a standard start method, first in the instance (if any),
14940 semerr(gettext("No instance is selected.\n"));
16238 * Creates a list of instance name strings associated with a service. If
16255 uu_warn(gettext("Could not create instance or iterator\n"));
16282 "instances to create instance list : %s\n"),
16291 * If the instance does not have a last-import snapshot
16293 * instance that should not be managed.
16360 * disable an instance but wait for the instance to
16363 * Returns 0 : if the instance did not disable
16364 * Returns non-zero : if the instance disabled.
16368 disable_instance(scf_instance_t *instance)
16373 if (inst_is_running(instance)) {
16375 if (scf_instance_to_fmri(instance, fmribuf,
16382 * If the instance cannot be disabled then return
16392 if (!inst_is_running(instance))
16602 * of service and instance to manifest linkage. Adding
16625 scf_instance_t *instance;
16632 instance = scf_instance_create(g_hndl);
16634 if (iter == NULL || instance == NULL) {
16657 while ((r = scf_iter_next_instance(iter, instance)) != 0) {
16664 (void) disable_instance(instance);
16673 scf_instance_destroy(instance);
16705 * instance support, so just return as
16741 * Remove the instance from the instances list.
16797 * the path to the manifest file that defined the service or instance.
16802 * instance containing last-import snapshot which is created during svccfg
16842 * A handcrafted service, one that has no instance containing
16847 uu_warn(gettext("Unable to create instance list %s\n"),
16952 scf_instance_t *instance;
16973 instance = scf_instance_create(g_hndl);
16976 instance == NULL) {
17108 * to do instance processing in this case because the
17131 * for access verification and instance support
17208 * instance support.
17249 uu_warn(gettext("Unable to create instance list %s\n"),
17281 * If there are instances left on the instance list, then
17290 * Remove the instance from the instances list.
17292 safe_printf(gettext("Delete instance %s from "
17295 instance) != SCF_SUCCESS) {
17302 (void) disable_instance(instance);
17304 (void) lscf_instance_delete(instance, 1);
17306 scf_instance_destroy(instance);