Quoth Brian Utterback on Tue, May 01, 2007 at 12:26:03PM -0400: > Okay, I tried that, and smf never kills the process nor even puts it > into maintenance status. Here is the code I have: > > /* enter the maintenance mode */ > if ((fmri = getenv("SMF_FMRI")) != NULL) { > if (0 > smf_maintain_instance(fmri, > SMF_TEMPORARY|SMF_IMMEDIATE)) { > > printf("smf_maintain_instance:%s\n",scf_error()); > exit(1); > } > /* sleep until SMF kills us */ > while (1) { > pause(); > } > }
Don't use _IMMEDIATE. What does "svcs -l" report while you're sleeping? What does your /var/svc/log file say? David