Hi OSS-Team,
we installed logrotate and tried to use the provided cron-config /opt/freeware/etc/cron.daily/logrotate, but this cron-file uses /etc/logrotate.conf instead of /opt/freeware/etc/logrotate.conf. Not a real issue in my opinion, but maybe this can be fixed in the build process.
Installed version of logrotate: 3.14.0-4
root@testserver /opt/freeware/etc/cron.daily# cat logrotate
#!/bin/sh
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit $EXITVALUE
root@testserver /opt/freeware/etc/cron.daily# /opt/freeware/etc/cron.daily/logrotate
error: cannot stat /etc/logrotate.conf: A file or directory in the path name does not exist.
root@testserver /opt/freeware/etc/cron.daily# file /etc/logrotate.conf
file: 0653-900 cannot open /etc/logrotate.conf.
root@testserver /opt/freeware/etc/cron.daily# file /opt/freeware/etc/logrotate.conf
/opt/freeware/etc/logrotate.conf: commands text
Best regards
------------------------------
Niklas
------------------------------