rc script: manual stop vs system shutdown

Warner Losh imp at bsdimp.com
Thu Aug 1 16:12:46 UTC 2019


On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes <
freebsd-rwg at gndrsh.dnsmgr.net> wrote:

> >
> > Is it possible in an rc script to distinguish between a manual stop
> > (e.g., service foo stop) and a stop during a system shutdown (via
> > rc.shutdown) ?
> > Are there any marker variables for that?
> > Or something in the global system state?
>
> Not that I can think of, but I like this idea,
> I am sure that use cases exist.
>

What is the use case that needs to disambiguate the two cases...

Warner

> Andriy Gapon
> --
> Rod Grimes
> rgrimes at freebsd.org
> _______________________________________________
> freebsd-rc at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe at freebsd.org"
>


More information about the freebsd-current mailing list