rc script: manual stop vs system shutdown

Andriy Gapon avg at FreeBSD.org
Thu Aug 1 13:17:18 UTC 2019


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?

Thanks!
-- 
Andriy Gapon


More information about the freebsd-rc mailing list