* Dan Fayette <fayette at rocketmail.com> [2007-06-28 12:53]: > Unless I'm misreading your suggestion this will tell the server to > "start or return the code" > > I don't think this will prevent SMF from trying to restart the service > if it dies/kill -9. I think I missed mentioning a part of the trick: you need to make the service of duration "child". Then the start method's exit status is always relevant.
> If one of the dependencies fail or the service can not start for some > reason SMF will report the maintenance status but not if the service > is killed or dies. > > Thank you for the suggestion though. I have not seen this as an > option anywhere else and may be of use in other scenarios, but unless > I'm just not thinking right I don't think it will satisfy my > requirement. If your start method exits with one of the SMF_EXIT_ERR_* codes, then svc.startd will not retry: see 1095 - 1109 of http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/svc/startd/method.c - Stephen -- sch at sun.com http://blogs.sun.com/sch/