mgetty logfiles

Udo Erdelhoff (udo@iml.fhg.de)
Tue, 22 Apr 1997 11:49:49 +0200


Hi,
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 ...

The only solution I've found is to shut down mgetty by changing the ttytab
and sending a hangup signal to init. After that, I can modify the logfile,
reverse the changes to the ttytab and let init reread it. 

I'd like to have a more elegant solution. Any idea will be appreciated.

/s/Udo


.