Re: [foxboro] foxmonitor startup problems

On Thu, Dec 12, 2002 at 08:19:30AM -0500, stan wrote:
> 
> On Wed, Dec 11, 2002 at 04:27:36PM -0500, Johnson, Alex (Foxboro) wrote:
> > 
> > Actually, it was a bad place to put it.
> > 
> > 
> > I usually use / for this log file on my machine, but I got sloppy. Good
> > catch.
> > 
> > How about this:
> > 
> >     #!/bin/sh
> >     exec >/etc/rc2.d/log.S99FOXBORO 2>&1
> >     set -x
> > 
> Actually, as one of my co-workers pointed out, I think Alex's original idea
> (while not pretty) would _not_ cause a problem. As my co-worker pointed out
> the executable bit will not get set on the created logfile, thus init (at
> least I _think_ that's what executes these startup scripts) would not be
> able to execute teh logfile.
> 
> Of course, if init (or whatever executes these), _sources_ the
> /etc/rc?.d/S* files on a run level change, all bets are off, and it _would_
> be a problem.
> 
> Anyone know for certain?
> 

FYI. man init.d confirms that the scripst are _executed_, not sourced.


-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                                -- Benjamin Franklin
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: