[arch-general] Daemon No Longer Writes To Logs

Damjan Georgievski gdamjan at gmail.com
Wed Mar 3 10:03:44 EST 2010


> I was looking at '/var/log/mail.log'

always use less to view log files. vim makes a copy of the files you
open, and that could be a lot of unnecesseary IO for big log files.

> which is the default location
> Postfix MTA writes everything it does to. I was sadly in that file
> using Vim and deleted the last line. I didn't restore the removed line
> and simply saved the file. I noticed now that the Postfix daemon no
> longer writes anything to the log file since I edited it.

When vim saves a file it actually saves a new copy of the file.
But postfix kept the old file opened and is still writing to it.

You can for example compare the inode of the file you see in the filesystem
ls -i /var/log/mail.log
and the node reported by "lsof -p <THE PID OF POSTFIX HERE>"


-- 
damjan


More information about the arch-general mailing list