I've installed RsyslogD and have it working the way I want. The only issue is now logd stops logging to /var/log/messages after the first day. I assume logrotate is causing problems? How can I fix this?
If I ptrace logd, it looks like ubusd is having problems with a missing file?? "kill -HUP <ubusd> seems to make logs flow again, but I'm not sure why.
strace -p <pid>
epoll_pwait(3, [], 10, 1000, NULL, 8) = 0
socket(AF_UNIX, SOCK_STREAM, 0) = 12
fcntl(12, F_GETFD) = 0
fcntl(12, F_SETFD, FD_CLOEXEC) = 0
connect(12, {sa_family=AF_UNIX, sun_path="/var/run/udebug.sock"}, 110) = -1 ENOENT (No such file or directory)
close(12) = 0
# cat /etc/logrotate.d/rsyslogd.files
/mnt/sda2/var/log/messages /mnt/sda2/var/log/secure /mnt/sda2/var/log/cron
{
create 640 root root
# ftpd doesn't handle SIGHUP properly
compress
missingok
notifempty
rotate 4
daily
postrotate
/etc/init.d/rsyslog restart
endscript
}