Originally posted by: SystemAdmin
Hello
I have old logrotate compiled by UCLA AIX PDSLIB (closed already). This is the only compiled logrotate I was able to find. It was compiled for 5.1 and is crashing on my 5.2 and 5.3 with SIGSEV :
$ logrotate -d -v -s /tmp/logrotate.tst ./m
reading config file ./m
reading config info for /ah*/lg/*.log
reading config info for /ah*/lg/*.lg
Handling 2 logs
rotating pattern: /ah*/lg/*.log after 1 days (10 rotations)
empty log files are not rotated old logs are removed
rotating file /ahtest/lg/test.log
log does not need rotating
Segmentation fault (core dumped)
Truss :
statx("/ahtest/lg/test.log", 0x2FF227E8, 76, 0) = 0
log does not need rotating
kwrite(2, " l o g d o e s n o t".., 27) = 27
kfcntl(2, F_GETFL, 0x2FF22FFC) = 67110914
Received signal #11, SIGSEGV
default And it also does not pick up all logs matching patter as described in conf file (maybe because it was SIGSEV'ed already) :
/ah*/lg/*.log
/ah*/lg/*.lg
Is there a workaround for the problem ? I also would appreciate if AIX would provide compiled logrotate in "AIX Toolbox for Linux Applications" - why logrotate is not yet there ?...
Maybe there are alternatives for AIX with all same abilities as original logrotate ?
Thank you for clarification.
With best regards
Martynas
#AIX-Forum