[openib-general] progress...but opensm crashed

Johannes Erdfelt johannes at erdfelt.com
Tue Jan 4 11:17:01 PST 2005


On Tue, Jan 04, 2005, Hal Rosenstock <halr at voltaire.com> wrote:
> On Mon, 2005-01-03 at 16:12, Johannes Erdfelt wrote:
> > On Mon, Jan 03, 2005, Hal Rosenstock <halr at voltaire.com> wrote:
> > > On Mon, 2005-01-03 at 14:48, Tom Duffy wrote:
> > > > It would be cool if the log file was saved with the pid in the name as
> > > > well since then it wouldn't delete the old one when you restarted the
> > > > sm.
> > > 
> > > Dealing with the too many log files (and space) issue is probably better
> > > than deleting the old log file (and making that explicit). So if no one
> > > has any objections to this, I will commit the change for this. It is
> > > pretty simple.
> > 
> > Why not just append to the previous log file? That's what pretty much
> > every other daemon I've used does and what I would expect.
> > 
> > Maybe also move the log file to /var/log too?
> 
> I noticed that some of these daemons periodically copy their messages.
> One example is /var/log/messages. This becomes messages.1, .2, etc. Is
> this done on a date/time basis or size basis or something else ? Should
> this approach be taken for OpenSM ?

That is usually done by the logrotate package. Look at
/etc/logrotate.conf and /etc/logrotate.d/

JE




More information about the general mailing list