mgetty logfiles

Stefan Hornburg (racke@gundel.han.de)
Wed, 23 Apr 1997 07:58:07 +0200


udo@iml.fhg.de (Udo Erdelhoff) writes:

> 
> 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
> 
> 

Move the logfile in question with `mv' (mgetty stays attached),
send mgetty a SIGHUP and everything works fine.

Ciao
		Racke
.