Quote:
Originally Posted by
achenle
Just write an init script. It's simple, understandable, and even more important easily maintainable for someone in the future.
SMF services are none of that.
SMF services are great when you have complex dependencies between various services and events. But just because you have a hammer doesn't make every problem a nail.
Sun and now Oracle have insisted that init scripts are "legacy" and will be removed in a later Solaris release. Also, they no longer guarantee the order in which they'll be started or stopped, as the init scripts are themselves executed by an SMF service.
So - you should be using SMF, even for simple things. It's the way Solaris has evolved and is evolving. It's not hard to write an SMF manifest for a simple service once you've read the documentation.