Lines Matching refs:startd_tmpl
537 static int startd_tmpl = -1; /* fd for svc.startd's template */
2060 if (startd_tmpl >= 0 && id_eq(cmd.c_id, "smf")) {
2139 if (startd_cline[0] != '\0' && startd_tmpl >= 0) {
2141 if (startd_run(startd_cline, startd_tmpl, 0) == -1)
4148 startd_tmpl = contract_make_template(0, CT_PR_EV_EMPTY,
4151 if (dup2(startd_tmpl, 254) == -1) {
4155 (void) close(startd_tmpl);
4156 startd_tmpl = 254;
4159 (void) fcntl(startd_tmpl, F_SETFD, FD_CLOEXEC);
4161 if (legacy_tmpl < 0 && startd_tmpl < 0) {
4308 if (startd_tmpl < 0)
4314 (void) startd_run(startd_cline, startd_tmpl,
4378 console(B_TRUE, "Remake startd_tmpl; reattempt transfer.\n");
4379 tmpl = startd_tmpl = contract_make_template(0, CT_PR_EV_EMPTY,
4390 if ((err = ct_pr_tmpl_set_svc_fmri(startd_tmpl,
4395 if ((err = ct_pr_tmpl_set_svc_aux(startd_tmpl,