Paul,
thanks for your reply,
After looking at all my scripts, my problem was due to a bad character
in one config file.The logrotate interpreter could not understand this
command.
But i have still one problem with this simple script:
root@srv-dhcp-1:/etc# cat /tmp/logrotate_test
/var/log/syslog-ng/current_logs/BY_FACILITY_*.log
{
size 2M
rotate 3
compress
delaycompress
}
root@srv-dhcp-1:/etc# logrotate /tmp/logrotate_test
error: error creating output filet_log
/var/log/syslog-ng/currens/BY_FACILITY_daemon.err.log.1.gz: Le fichier
existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.info.log.1.gz: Le
fichier existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.info.log.1.gz: Le
fichier existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.notice.log.1.gz: Le
fichier existe
This is initial error in my system, and of course as there is no
possibility to logrotate, i have a disk full error in another daemons.
I suspect a problem with uid/gui, because syslog-ng write all files with ..
root@srv-dhcp-1:/etc# id admlocal
uid=10000(admlocal) gid=10000(admlocal)
groupes=10000(admlocal),10002(g_admin)
so, i change it for test purpose
chown -R root.root /var/log/syslog-ng/current_logs
then after launching command...
root@srv-dhcp-1:/etc# logrotate /tmp/logrotate_test
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.err.log.1.gz: Le
fichier existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.info.log.1.gz: Le
fichier existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.info.log.1.gz: Le
fichier existe
error: error creating output file
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.notice.log.1.gz: Le
fichier existe
root@srv-dhcp-1:/etc#
root@srv-dhcp-1:/etc# ls -altr
/var/log/syslog-ng/current_logs/BY_FACILITY_*.1.gz
-rw-r----- 1 root root 0 janv. 12 19:17
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.info.log.1.gz
-rw-r----- 1 root root 36864 janv. 12 19:17
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.err.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.debug.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_cron.info.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_authpriv.info.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_auth.info.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_user.notice.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.notice.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.err.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.notice.log.1.gz
-rw-r----- 1 root root 0 janv. 12 20:17
/var/log/syslog-ng/current_logs/BY_FACILITY_daemon.info.log.1.gz
-rw-r----- 1 root root 0 janv. 14 14:17
/var/log/syslog-ng/current_logs/BY_FACILITY_syslog.warning.log.1.gz
-rw-r----- 1 root root 0 janv. 14 14:17
/var/log/syslog-ng/current_logs/BY_FACILITY_auth.crit.log.1.gz
any idea ?
thanks in advance
--
--------------------------------------
-- Jean-Marc LACROIX --
-- mailto : [email protected] --
---------------------------------------