David Bustos wrote: >> exec="/opt/myapp/runonce; svcadm disable $SMF_FMRI"/> > > I see two potential problems with this. First, if runonce dies > prematurely, svc.startd won't restart it. Second, if runonce wants to > return a specific SMF return code, it won't be able to.
Perhaps exec="/opt/myapp/runonce && svcadm disable $SMF_FMRI"/> Perhaps the "svcadm disable" needs to be wrapped so that it returns SMF exit codes. Of course, runonce could do the disable, but I wanted to show it explicitly here.