[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /var/log/messages



On Fri, Feb 21, 2003 at 03:03:57PM +0900, Nick Hastings wrote:
> > If you just want to "reset" the files without a backup, as root
> > type in: "touch /var/log/messages". (minus the quotes and the .)
> 
> Won't that just change the access and modification time of the file?
> That happens every 20 minutes anyway (-- MARK --). What else does
> that achieve? 

Touch also will create a zero-sized file.  You used to have to touch a
file if it didn't exist before you could edit it in vi once apon a
time.  Log daemons don't tend to like not having a file to add to,
even if it's a zero size one.

-- 
 .''`.     Baloo <baloo@ursine.dyndns.org>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than to fix a system

Attachment: pgp9ooy1OZwNv.pgp
Description: PGP signature


Reply to: