Subject: Re: newsyslog
To: None <tech-userlevel@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 07/11/2000 14:06:45
[ On Tuesday, July 11, 2000 at 09:43:50 (-0400), Bill Sommerfeld wrote: ]
> Subject: Re: newsyslog 
>
> [ On Tuesday, July 11, 2000 at 13:31:15 (+0100), Andy Doran wrote: ]
> >
> > Finally, locking. We don't want logs to get mangled, so some form of
> > serialization needs to be done. So far I'm thinking create a lock like:
> > 
> > /var/tmp/.newsyslog-lock.var.log.messages
> > 
> > or
> > 
> > /var/log/.lock.messages
> 
> How will you recover from stale locks if the system crashes while
> running newsyslog?
> 
> (hint: this is what /var/run is for.. :-) )

Actually I think /var/spool/lock is more appropriate.  I don't see any
problem with colliding with the tty locks that are already created
there....

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>