mgetty logfiles

Gert Doering (gert@greenie.muc.de)
Tue, 22 Apr 1997 23:21:58 +0200


Hi,

Udo Erdelhoff wrote:
> I'm using mgetty-1.0.0 on a Sun Sparcstation 2 with SunOS 4.1.3. Almost
> everything works fine, only the logfiles give me a lot of trouble. I need
> to archive mgetty's logfiles on a weekly basis. Unfortunatelz, mgetty
> keeps his logfile open. I can create a backup of the logfile without
> problems; if I try to cut it (cp /dev/null /var/log/mgetty.log.cua0),
> things get ugly ...

"mv" the files away (mgetty will now have the file with the "new name" 
open), kill the running mgetty process, then archive the files (after 
restart, mgetty will have use "old file names" again).

gert

-- 
USENET is *not* the non-clickable part of WWW!
           //www.muc.de/~gert/
Gert Doering - Munich, Germany      gert@greenie.muc.de
fax: +49-89-3545980     gert.doering@physik.tu-muenchen.de
.