Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2003 00:29:17 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        arch@FreeBSD.ORG
Subject:   Re: NEWSYSLOG changes, -Create option for rc.diskless
Message-ID:  <p05200f18ba907f20159a@[128.113.24.47]>
In-Reply-To: <p05200f22ba81b269ba0f@[128.113.24.47]>
References:  <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <p05200f08ba7b59fffe0a@[128.113.24.47]> <p05200f1fba807dbb60c0@[128.113.24.47]> <200302251255.48219.wes@softweyr.com> <p05200f22ba81b269ba0f@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
When looking through some /etc/rc files the other day, I noticed
that /etc/rc.diskless2 picks up entries in /etc/newsyslog.conf
and uses 'touch' to create them.  With all the other changes I
have made and plan to make, this is not a good idea.  In fact, it
was already a bad idea because it won't get owner, group, or
permissions set right.

I have an update in:
http://people.freebsd.org/~gad/newsyslog/create-opt.diff

which implements a '-C' option for newyslog.  Once this is
committed, /etc/rc.diskless2 should be changed to use it.  The
update also adds a a 'C' flag for the config file entries, to
match an option that NetBSD has.

Please pay close attention to the new createlog() routine, as a
later update will switch to using that for all logfile creations.
My goal was to eliminate all windows in the create of a new log
file.  This (once I do it) should complete the job started in
revision 1.41 (committed in april 2002).

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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