Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2019 11:12:33 -0500
From:      Warner Losh <imp@bsdimp.com>
To:        "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
Cc:        Andriy Gapon <avg@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, freebsd-rc@freebsd.org
Subject:   Re: rc script: manual stop vs system shutdown
Message-ID:  <CANCZdfpuEuRKMPKTKJkzUg4mwugCV5iUxEEEV0yt%2BZTceZf1dg@mail.gmail.com>
In-Reply-To: <201908011553.x71FrTCd060252@gndrsh.dnsmgr.net>
References:  <2e50fb67-8a19-412b-19d2-14f5f20b61f8@FreeBSD.org> <201908011553.x71FrTCd060252@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes <
freebsd-rwg@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@freebsd.org
> _______________________________________________
> freebsd-rc@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-rc
> To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpuEuRKMPKTKJkzUg4mwugCV5iUxEEEV0yt%2BZTceZf1dg>