ezztro

Well-Known Member
Nov 11, 2003
148
0
166
Hello,

sorry for my bad english :)

I have a prob with syslog, that logs some events to /var/log/messages.

Every night at 4 am, syslog stops loggin this infos to /var/log/messages. i must restart syslog manualy everday with service syslog stop and service syslog start.

4am is the same time, where logrotate is running. how can i fix this ? cpanel version latest edge.

this prob is since the last stable version. system centos 4.3
 

dave9000

Well-Known Member
Apr 7, 2003
888
1
168
arkansas
cPanel Access Level
Root Administrator
known issue with any recent RH based OS when /tmp is set noexec
follow the below instructions and it should fix the issue

mkdir /mytmp

then edit pico -w /etc/cron.daily/logrotate and set the TMPDIR so it looks like this:


Code:
#!/bin/sh
TMPDIR=/mytmp
export TMPDIR
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0

Then run /etc/cron.daily/logrotate and see if it works.
 
Last edited: