PDA

View Full Version : log files


inspirix
10-25-2006, 11:38 AM
Not quite a bug, not quite a feature.... hopefully it would be a quick fix:

The log files (stderr.log for example) get locked/closed/something on a server restart:

tail -f stderr.log &
(logs tailed)
lswsctrl restart
(no more logs from tail show up)

in which case you need to break out of the current tail, and redo:

tail -f stderr.log

and then you can continue following the tail

Not sure how this actually happens, but this doesnt seem to be a common thing among any apps ive tried. I cant think of any where the tail wouldnt keep working.

Anyways, not a huge deal, just a little thing I noticed.

xing
10-25-2006, 12:59 PM
We'll check this out and see there is a work-around on our end.

I can see how this is useful since many log monitors use the tail function.

mistwang
10-31-2006, 11:11 PM
It does happen with error.log, as LSWS rotates the error log file for each restart. But for stderr.log, "tail -f" works fine after restarts, at least on my test server.