RE: syslog не ротейтит файлы

Главная Форумы POWER Systems AIX/Hardware syslog не ротейтит файлы RE: syslog не ротейтит файлы

#5557
Nikolay Logvinov
Участник

/etc/syslog.conf
local0.debug /var/log/uman.log rotate size 100k files 4 time 1h
Запускаю скрипт:
while true^Jdo^Jsleep 600^Jlogger -p local0.debug `date`^Jdone

Смотрим через некоторое время:
# ls -lt uman*
-rw-r–r– 1 root system 432 Oct 22 10:18 uman.log
-rw-r–r– 1 root system 504 Oct 22 09:18 uman.log.0
-rw-r–r– 1 root system 504 Oct 22 08:08 uman.log.1
# cat uman.log.1
Oct 22 07:08:53 guinness local0:debug nl: Thu Oct 22 07:08:53 UTC 2009
Oct 22 07:18:53 guinness local0:debug nl: Thu Oct 22 07:18:53 UTC 2009
Oct 22 07:28:53 guinness local0:debug nl: Thu Oct 22 07:28:53 UTC 2009
Oct 22 07:38:53 guinness local0:debug nl: Thu Oct 22 07:38:53 UTC 2009
Oct 22 07:48:53 guinness local0:debug nl: Thu Oct 22 07:48:53 UTC 2009
Oct 22 07:58:53 guinness local0:debug nl: Thu Oct 22 07:58:53 UTC 2009
Oct 22 08:08:53 guinness local0:debug nl: Thu Oct 22 08:08:53 UTC 2009
# cat uman.log.0
Oct 22 08:18:53 guinness local0:debug nl: Thu Oct 22 08:18:53 UTC 2009
Oct 22 08:28:53 guinness local0:debug nl: Thu Oct 22 08:28:53 UTC 2009
Oct 22 08:38:53 guinness local0:debug nl: Thu Oct 22 08:38:53 UTC 2009
Oct 22 08:48:53 guinness local0:debug nl: Thu Oct 22 08:48:53 UTC 2009
Oct 22 08:58:53 guinness local0:debug nl: Thu Oct 22 08:58:53 UTC 2009
Oct 22 09:08:53 guinness local0:debug nl: Thu Oct 22 09:08:53 UTC 2009
Oct 22 09:18:53 guinness local0:debug nl: Thu Oct 22 09:18:53 UTC 2009
# cat uman.log
Oct 22 09:28:53 guinness local0:debug nl: Thu Oct 22 09:28:53 UTC 2009
Oct 22 09:38:53 guinness local0:debug nl: Thu Oct 22 09:38:53 UTC 2009
Oct 22 09:48:53 guinness local0:debug nl: Thu Oct 22 09:48:53 UTC 2009
Oct 22 09:58:53 guinness local0:debug nl: Thu Oct 22 09:58:53 UTC 2009
Oct 22 10:08:53 guinness local0:debug nl: Thu Oct 22 10:08:53 UTC 2009
Oct 22 10:18:53 guinness local0:debug nl: Thu Oct 22 10:18:53 UTC 2009
# date
Thu Oct 22 10:25:48 UTC 2009