Lines Matching refs:milestone
203 * milestone/shutdown code.
219 * milestone indicates the current subgraph. When NULL, it is the entire
223 static graph_vertex_t *milestone = NULL;
232 /* Number of services to come down to complete milestone transition. */
236 * These variables indicate what should be done when we reach the milestone
237 * target milestone, i.e., when non_subgraph_svcs == 0. They are acted upon in
284 * after milestone/single-user comes online, for backwards compatibility.
286 * to ensure sulogin will be spawned if milestone/single-user cannot be reached.
2846 if (v == milestone)
2921 assert(milestone != NULL && milestone != MILESTONE_NONE);
3031 if (milestone > MILESTONE_NONE) {
3093 if (milestone > MILESTONE_NONE) {
3125 if (milestone > MILESTONE_NONE) {
3342 if (milestone != NULL) {
3347 if (milestone == MILESTONE_NONE ||
3350 * This might seem unjustified after the milestone
3353 * a milestone, we set the milestone before populating
4002 log_error(LOG_WARNING, "Could not clear temporary milestone: "
4021 uu_warn("Returning to milestone %s.\n", buf);
4060 * that setting the milestone should have created before checking
4101 * To support booting to a milestone, we must also make sure all dependencies
4272 if (milestone > MILESTONE_NONE && v->gv_flags != oldflags)
4840 * Handle state changes during milestone shutdown. See
4854 /* Don't care if we're not going to a milestone. */
4855 if (milestone == NULL)
4924 * user milestone.
5006 if (milestone > MILESTONE_NONE) {
5041 if (v != milestone && v->gv_refs == 0 &&
5045 if (milestone > MILESTONE_NONE) {
5067 * Return the eventual (maybe current) milestone in the form of a
5075 if (milestone == NULL)
5077 else if (milestone == MILESTONE_NONE)
5080 if (strcmp(milestone->gv_name, multi_user_fmri) == 0)
5082 else if (strcmp(milestone->gv_name, single_user_fmri) == 0)
5084 else if (strcmp(milestone->gv_name, multi_user_svr_fmri) == 0)
5088 (void) fprintf(stderr, "%s:%d: Unknown milestone name \"%s\".\n",
5089 __FILE__, __LINE__, milestone->gv_name);
5148 * to reach the milestone because this allows /etc/inittab entries to retain
5155 * milestone: without this, an /etc/inittab entry marked only for
5195 * /etc/rc?.d/K* scripts and/or setting the milestone.
5209 const char *ms = NULL; /* what to commit as options/milestone */
5244 * These cases cause a milestone change, so
5269 * Since this triggers no milestone changes, force it by hand.
5288 * 2. On the other hand, if we are here after a "svcadm milestone":
5290 * svcadm milestone X
5540 * The decision to change the system run level in accordance with the milestone
5547 * EALREADY - the milestone is already set to fmri
5573 "Rejecting request for invalid milestone \"%s\".\n",
5583 if (milestone == NULL) {
5590 } else if (milestone == MILESTONE_NONE) {
5599 strcmp(cfmri, milestone->gv_name) == 0) {
5610 log_framework(LOG_WARNING, "Cannot set milestone to %s "
5617 log_framework(LOG_DEBUG, "Changing milestone to %s.\n", fmri);
5620 * Set milestone, removing the old one if this was the last reference.
5622 if (milestone > MILESTONE_NONE)
5623 (void) vertex_unref(milestone);
5626 milestone = NULL;
5628 milestone = MILESTONE_NONE;
5630 milestone = nm;
5631 /* milestone should count as a reference */
5632 vertex_ref(milestone);
5640 /* Set GV_INSUBGRAPH for milestone & descendents. */
5641 milestone->gv_flags |= GV_INSUBGRAPH;
5643 r = uu_list_walk(milestone->gv_dependencies,
5865 * If -m milestone= was specified, we want to set options_ovr/milestone
5866 * to it. Otherwise we want to read what the milestone should be set
6006 "Requested milestone \"%s\" is invalid. "
6011 log_error(LOG_WARNING, "Requested milestone "
6021 log_error(LOG_WARNING, "Requested milestone "
6047 "Requested milestone \"%s\" is invalid. "
6053 "Requested milestone \"%s\" not "
6064 log_console(LOG_INFO, "Booting to milestone \"%s\".\n", fmri);
6195 * since if we booted to a milestone, then there won't be any more