Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 1995 11:37:06 -0400 (EDT)
From:      Bill/Carolyn Pechter <pechter@shell.monmouth.com>
To:        gryphon@healer.com (Coranth Gryphon)
Cc:        freebsd-chat@freebsd.org
Subject:   Re: ports startup scripts
Message-ID:  <199509221537.LAA10284@shell.monmouth.com>
In-Reply-To: <199509221450.KAA03655@healer.com> from "Coranth Gryphon" at Sep 22, 95 10:50:53 am

next in thread | previous in thread | raw e-mail | index | archive | help
> It looks like the "S" and "K" scripts are for starting and stopping
> things. There are two ways of doing this.
> 
> First, you can have the "K" run when leaving a level (to go to a lower level
> not a higher one), and the "S" when entering a level (unless coming from
> a higher one). Never mind, that's overly complex.
> 
> The other way is you run everything in a single directory (S and K)
> when going to that directory. This actually makes the most sense to me.
> 

You could use who -r to make decisions within the script as to whether
to do something like killing the daemons.

most SVRx scripts (and rc in SVR0-->2 do something like 

set who -r to get the following info -- run level, previous run level
and the number of times in this run level.  This info would allow you to
avoid running the same stuff twice.

Bill

-------------------------------------------------------------------------------
 Bill Pechter/Carolyn Pechter        | The postmaster always pings twice.
 Lakewood MicroSystems               | 17 Meredith Drive,
 908-389-3592                        | Tinton Falls, NJ 07724       
 pechter@shell.monmouth.com          |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509221537.LAA10284>