Re: rc script: manual stop vs system shutdown

2019-08-12 Thread Andriy Gapon
On 12/08/2019 13:57, Andriy Gapon wrote: > On 12/08/2019 13:45, Konstantin Belousov wrote: >> On Mon, Aug 12, 2019 at 10:46:29AM +0300, Andriy Gapon wrote: >>> I guess that there is more than one way to achieve what I want or >>> something similar to that. >>> Rather than "expend words" on a

Re: rc script: manual stop vs system shutdown

2019-08-12 Thread Andriy Gapon
On 12/08/2019 13:45, Konstantin Belousov wrote: > On Mon, Aug 12, 2019 at 10:46:29AM +0300, Andriy Gapon wrote: >> I guess that there is more than one way to achieve what I want or >> something similar to that. >> Rather than "expend words" on a theoretical discussion, I decided to do >> this:

Re: rc script: manual stop vs system shutdown

2019-08-12 Thread Konstantin Belousov
On Mon, Aug 12, 2019 at 10:46:29AM +0300, Andriy Gapon wrote: > On 01/08/2019 22:51, Ian Lepore wrote: > > On Thu, 2019-08-01 at 21:14 +0300, Andriy Gapon wrote: > >> On 01/08/2019 19:12, Warner Losh wrote: > >>> > >>> > >>> On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes > >>>

Re: rc script: manual stop vs system shutdown

2019-08-12 Thread Andriy Gapon
On 01/08/2019 22:51, Ian Lepore wrote: > On Thu, 2019-08-01 at 21:14 +0300, Andriy Gapon wrote: >> On 01/08/2019 19:12, Warner Losh wrote: >>> >>> >>> On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes >>> mailto:freebsd-...@gndrsh.dnsmgr.net>> >>> wrote: >>> >>> > >>> > Is it possible in an

Re: rc script: manual stop vs system shutdown

2019-08-02 Thread Andriy Gapon
On 02/08/2019 01:51, Enji Cooper wrote: > >> On Aug 1, 2019, at 11:07, Andriy Gapon wrote: >> >>> On 01/08/2019 20:30, Enji Cooper wrote: >>> On Aug 1, 2019, at 08:53, Rodney W. Grimes >>> wrote: >>> > > Is it possible in an rc script to distinguish between a manual stop > (e.g.,

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Enji Cooper
> On Aug 1, 2019, at 11:07, Andriy Gapon wrote: > >> On 01/08/2019 20:30, Enji Cooper wrote: >> On Aug 1, 2019, at 08:53, Rodney W. Grimes >> 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Ian Lepore
On Thu, 2019-08-01 at 21:14 +0300, Andriy Gapon wrote: > On 01/08/2019 19:12, Warner Losh wrote: > > > > > > On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes > > mailto:freebsd-...@gndrsh.dnsmgr.net>> > > wrote: > > > > > > > > Is it possible in an rc script to distinguish between a

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
On 01/08/2019 21:53, Freddie Cash wrote: > On Thu, Aug 1, 2019, 11:15 AM Andriy Gapon, > wrote: > > On 01/08/2019 19:12, Warner Losh wrote: > > > > > > On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes > > >

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Freddie Cash
On Thu, Aug 1, 2019, 11:15 AM Andriy Gapon, wrote: > On 01/08/2019 19:12, Warner Losh wrote: > > > > > > On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes > > mailto:freebsd-...@gndrsh.dnsmgr.net>> > > wrote: > > > > > > > > Is it possible in an rc script to distinguish between a manual

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
On 01/08/2019 19:12, Warner Losh wrote: > > > On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes > mailto:freebsd-...@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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
On 01/08/2019 20:39, Rodney W. Grimes wrote: >> On Aug 1, 2019, at 08:53, Rodney W. Grimes >> 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
On 01/08/2019 20:30, Enji Cooper wrote: > On Aug 1, 2019, at 08:53, Rodney W. Grimes > 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
On 01/08/2019 20:30, Enji Cooper wrote: > On Aug 1, 2019, at 08:53, Rodney W. Grimes > 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Rodney W. Grimes
> On Aug 1, 2019, at 08:53, Rodney W. Grimes > 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Enji Cooper
On Aug 1, 2019, at 08:53, Rodney W. Grimes 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

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Warner Losh
On Thu, Aug 1, 2019, 10:53 AM Rodney W. Grimes < freebsd-...@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?

Re: rc script: manual stop vs system shutdown

2019-08-01 Thread Rodney W. Grimes
> > 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

rc script: manual stop vs system shutdown

2019-08-01 Thread Andriy Gapon
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