Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2019 16:17:09 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-rc@freebsd.org
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   rc script: manual stop vs system shutdown
Message-ID:  <2e50fb67-8a19-412b-19d2-14f5f20b61f8@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e50fb67-8a19-412b-19d2-14f5f20b61f8>