[arch-general] Daemon No Longer Writes To Logs

Carlos Williams carloswill at gmail.com
Wed Mar 3 10:16:55 EST 2010


On Wed, Mar 3, 2010 at 10:03 AM, Damjan Georgievski <gdamjan at gmail.com> wrote:
>> 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.

I wanted to really just clear all my log errors and mess from testing
over the night and start fresh. This is really why I opened it in Vim.
Just after I removed all the errors from the night before, it no
longer wrote to the log file and more once saved.

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

Interesting!

[root at mail postfix]# ls -i /var/log/mail.log
15828 /var/log/mail.log

[root at mail postfix]# ps -ef | grep -i "postfix"
root     24030     1  0 08:37 ?        00:00:00 /usr/lib/postfix/master
postfix  24298 24030  0 10:06 ?        00:00:00 pickup -l -t fifo -u
postfix  24299 24030  0 10:06 ?        00:00:00 qmgr -l -t fifo -u
root     24311 24270  0 10:10 pts/1    00:00:00 grep -i postfix

[root at mail postfix]# lsof -p 24030

First, which is the correct PID? Is it the 'master' PID? Secondly, I
don't appear to have the command in my system for some reason. Perhaps
I need to install the utility.


More information about the arch-general mailing list