Re: Daemon No Longer Writes To Logs

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



> 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


[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