Richard Doty wrote: > On Tue, 30 Dec 2008 12:56:21 -0600 Nicolas Williams wrote: >> SMF start/stop method scripts are usually NOT intended for direct >> invocation by users. > > Okay, that's clear enough. Thanks.
Or to put a finer point on it, methods scripts are neither intended nor unintended for direct invocation; they are simply an implementation detail. If a user-consumable script and a method are the same, it is a coincidence. For the very reasons you pointed out, creating scripts that correctly start services outside of SMF is complicated and error-prone whether you piggy-back on a method script or not. It's best to leave starting and stopping services to SMF. If you need to provide a different interface for starting or stopping a service (e.g. for compatibility), I recommend Nico's suggestion of implementing it in terms of enabling or disabling the appropriate SMF service. Dave