Lock Up

Gert Doering (gert@greenie.muc.de)
Mon, 27 Apr 1998 12:25:13 +0200


Hi,

Canary, Robert W. wrote:
> >Nah.  It does not write to the log files (because you have moved the logs
> >away, and it still writes to the *old* file),
>  So if my log rotate from 'mgetty.log.ttyC7' to 'mgetty.log.ttyC7.1' then 
> mgetty will continue to write to the old file which is now 
> 'mgetty.log.ttyC7.1' ......  

Depending what operation "rotate" does (my unix has no "rotate" command).

If that's a "mv mgetty.log.ttyC7 mgetty.log.ttyC7.1", mgetty will write
to "C7.1".

If that's a "cp mgetty.log.ttyC7 mgetty.log.ttyC7.1 ; rm mgetty.log.ttyC7"
mgetty will write to the *old* file (which is now unlinked, not visible
anymore in the file system, but still existant until mgetty will close
it).

> I not sure what you are saying exactly, 
> because it did *no* logging there either,  and did no logging in the new 
> file 'mgetty.log.ttyC7'.

Sounds like your "rotate" operation is doing copy/truncate or copy/delete.

> > but it will continue working just fine.
> 
> That's just it ..... the modems rang and rang and rang and mgetty just sat 
> there.  I found eight lock files with mgetty PIDs so I manually killed 
> them, but still nothing.  I then cycled power on the modem bank, think it 
> would send a wake up signal to mgetty, but still nothing happened,  after 
> that I did an 'init q' and strangelly enough it started logging again.

Really weird.  Especially since mgetty doesn't care at all whether you
do bad things to its log files.

> >After the next restart of mgetty, you'll see log info (in the new file) 
> again.
> 
> Yep!  But I had to do it manually.  After my modem bank remained dead all 
> day (ouch!)
> 
> Hey ..... Here is a thought,  from the documentation I know you strongly 
> disagree with this, but if I put the modems in AutoAnswer mode do you think 
> it will help the situation?

No.  If mgetty locks up (for whatever reason), auto answer will only make
things worse - the modem will answer, but nobody is there to listen.

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-35655025                        gert.doering@physik.tu-muenchen.de