ADSLで常時接続 - ホームサーバを作ろう

戻る

logrotateを使う

どうやらcronが使えるようになっていないらしい。まずはcrontabのインストールから。

bash-2.05a# apt-get install crontabs
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  tmpwatch
The following NEW packages will be installed:
  crontabs tmpwatch
0 packages upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B/16.2kB of archives. After unpacking 29.8kB will be used.
Doyou want to continue? [Y/n] y
Executing RPM (-Uv)...
crontabs
##################################################
tmpwatch
##################################################
bash-2.05a#

設定

crontabは入っていないのに、最初からlogrotateの定義(logrotate.conf)は入っているようです。不思議な出荷時仕様??

Copyright (C) 2000-2005 俺 All Right Reserved