Lines Matching defs:startd_tmpl
540 static int startd_tmpl = -1; /* fd for svc.startd's template */
2066 if (startd_tmpl >= 0 && id_eq(cmd.c_id, "smf")) {
2147 if (startd_cline[0] != '\0' && startd_tmpl >= 0) {
2149 if (startd_run(startd_cline, startd_tmpl, 0) == -1)
4159 startd_tmpl = contract_make_template(0, CT_PR_EV_EMPTY,
4162 if (dup2(startd_tmpl, 254) == -1) {
4166 (void) close(startd_tmpl);
4167 startd_tmpl = 254;
4170 (void) fcntl(startd_tmpl, F_SETFD, FD_CLOEXEC);
4172 if (legacy_tmpl < 0 && startd_tmpl < 0) {
4321 if (startd_tmpl < 0)
4327 (void) startd_run(startd_cline, startd_tmpl,
4391 console(B_TRUE, "Remake startd_tmpl; reattempt transfer.\n");
4392 tmpl = startd_tmpl = contract_make_template(0, CT_PR_EV_EMPTY,
4403 if ((err = ct_pr_tmpl_set_svc_fmri(startd_tmpl,
4408 if ((err = ct_pr_tmpl_set_svc_aux(startd_tmpl,