Re: Daemon No Longer Writes To Logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Mar 3, 2010 at 10:03 AM, Damjan Georgievski <gdamjan@xxxxxxxxx> 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@mail postfix]# ls -i /var/log/mail.log
15828 /var/log/mail.log

[root@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@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.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux