ajit jain wrote:
> Hi All,
> 
> I have wrote a service which has dependency on fs-root and fs-usr is
> dependent on my service.
> 
> I am expecting following online order for services at the time of system 
> boot:-
> fs-root -> my-service -> fs-usr   (That is happening correctly)
> 
> And the order in which services go offline is:-
> fs-usr -> my-service -> fs-root  (in the case of reboot it is not
> happening, but in case of init and shutdown it happening correctly)
> 
> It seems that in case of "reboot", somehow the smf is getting bypassed.
> 
> I want my service to go offline just before the fs-root goes offline.
> Is there any way to do it even in case of reboot.

NO. From reboot(1M)

  NOTES
       The  reboot  utility  does  not  execute  the   scripts   in
       /etc/rcnum.d  or  execute shutdown actions in inittab(4). To
       ensure  a  complete  shutdown  of   system   services,   use
       shutdown(1M) or init(1M) to reboot a Solaris system.

-- Renaud

Reply via email to