MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: johnnyto1979 on 2014-02-19, 09:28:05

Title: Logrotate and logs
Post by: johnnyto1979 on 2014-02-19, 09:28:05
My kloxo ver
A. Kloxo-MR: 6.5.0.f-2014013101
B. OS: CentOS release 6.5 (Final) x86_64

Hi.
My problem is in /usr/local/lxlabs/kloxo/log/
my logs are
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 ajax
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 backup
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 bdatabase
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 cron_exec
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 database
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 download
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 error
-rw-rw-r--  1 lxlabs lxlabs     0 Feb 19 10:01 filesys
-rw-r--r--  1 lxlabs lxlabs   160 Feb 19 10:01 filesys.1.gz
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 ftp_error
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 get_traffic
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 hiawatha-access.log
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 hiawatha-error.log
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 hiawatha-garbage.log
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 hiawatha-system.log
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 login_success
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 mail_send
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 message
-rw-rw-r--  1 lxlabs lxlabs   320 Feb 19 10:11 nonfilesys
-rw-r--r--  1 lxlabs lxlabs   727 Feb 19 10:01 nonfilesys.1.gz
-rw-rw-r--  1 lxlabs lxlabs   258 Feb 19 10:11 other_cmd
-rw-r--r--  1 lxlabs lxlabs   339 Feb 19 10:01 other_cmd.1.gz
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 redirect_error
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 remove_oldfile
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 restore
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 run_stats
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 servfile
-rw-r--r--  1 lxlabs lxlabs  1408 Feb 19 10:07 shell_error
-rw-rw-r--  1 lxlabs lxlabs  4138 Feb 19 10:07 shell_exec
-rw-r--r--  1 lxlabs lxlabs   312 Feb 19 10:01 shell_exec.1.gz
-rw-rw-r--  1 lxlabs lxlabs   188 Feb 19 10:11 syncserveriherit
-rw-r--r--  1 lxlabs lxlabs   318 Feb 19 10:01 syncserveriherit.1.gz
-rw-r--r--  1 lxlabs lxlabs   408 Feb 19 10:07 update
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 user_cmd
-rw-r--r--  1 lxlabs lxlabs     0 Feb 19 04:08 watchdog

allways empty, and logrotate compres empty file
When logs rotate for /var/log/  doesn't create empty file, ex for maillog or other.
Here, all looks k
 /usr/local/lxlabs/kloxo/file/kloxo.logrotate


/var/log/qmail/*/current /var/log/pureftpd.log {
        daily
        rotate 30
        create 0750 root root
        compress
        notifempty
        missingok
        postrotate
        pkill -HUP syslogd
        endscript

/etc/logrotate.conf the same

Why on log rotate doesn't create empty file, if is set to create.
And if  notifempty why logrotate and compress.
Thanks.