Hello. Is it possible to define a transient service using SMF that will be executed at single-user run level (after all services at this level are online), so that no services from multi-user will start executing before this service completes.
Obviously, such declaration will not work: <instance name='single-user' enabled='true'> <dependency name='single-user-milestone' type='service' grouping='require_all' restart_on='none'> <service_fmri value='svc:/milestone/single-user'/> </dependency> <dependent name='tip-init-multi-user' grouping='require_all' restart_on='none'> <service_fmri value='svc:/milestone/multi-user'/> </dependent> <exec_method type='method' name='start' exec='myscript.sh' timeout_seconds='-1' /> </instance> because a multi-user milestone occurs [i]after[/i] all multi-user services have been started, so it won't prevent them from starting. Also, I do not want to specify all multi-user services as dependent of my service. In other words, I'm looking for an analogue of creating an /etc/rc.S/S99myscript, which will be executed as last on single-user run level, and the system won't switch to muli-user run level before it completes. I'm not sure that SMF is designed for such usage, but that's exactly the behaviour I'd like to achieve, and i'd like to know if it is possible to do using SMF. This message posted from opensolaris.org