Tom Whitten wrote: > Marek Pospisil writes: > >> Hello everyone, >> >> is it possible to recognize in '/lib/svc/method/my_service_script' >> that SMF is stopping the service because the system is shutting >> down/rebooting? I can't use 'who -r' since 'reboot' command does >> not change run level. >> The reboot command does not disable the services either. For a clean reboot, you have to use init or shutdown cmds.
-- Renaud >> >> Thanks. >> >> Marek >> _______________________________________________ >> smf-discuss mailing list >> smf-discuss at opensolaris.org >> > > SMF doesn't make this information available to the services. > > I'm curious, though, why is this information useful to the service when it > is stopping? > > tom > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org >