0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

proftpdのログをローテートする

Posted at

名前付きパイプを作成


mknod  /var/log/xferlog.fifo p
chmod 666 /var/log/xferlog.fifo

proftpの設定


名前付きパイプを指定
#TransferLog                     /var/log/xferlog
TransferLog                     /var/log/xferlog.fifo

fifo-cronologのコンパイル


コンパイルしてできた実行ファイルを適当なディレクトリにコピー
tar jxvf fifo-cronolog-1.1.1.tar.bz2
cd fifo-cronolog-1.1.1
make
cp fifo-cronolog /usr/local/sbin/

fifo-cronologの起動


proftpdにより書かれた/var/log/xferlog.fifoが/var/log/xferlog.%Y%m%dにローテールされるようになります。

fifo-cronolog /var/run/fifo-cronolog.pid /var/log/xferlog.fifo /var/log/xferlog.%Y%m%d
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?