Comment 47 for bug 407862

Revision history for this message
Nikolaus Rath (nikratio) wrote : Re: [karmic] Messages not being sent to system logs

I'm still having the same problem too. Here's a strace of the rsyslog process when it receives the HUP:

[0] spitzer:/var/log# strace -p 7830
Process 7830 attached - interrupt to quit
select(1, NULL, NULL, NULL, {17, 289248}) = ? ERESTARTNOHAND (To be restarted)
--- SIGHUP (Hangup) @ 0 (0) ---
rt_sigaction(SIGHUP, {0x40c630, [], SA_RESTORER, 0x7f0cd0500190}, NULL, 8) = 0
rt_sigreturn(0x1) = -1 EINTR (Interrupted system call)
futex(0x800594, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x800590, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
sched_yield() = 0
select(1, NULL, NULL, NULL, {30, 0}) = 0 (Timeout)
access("/var/log/syslog", F_OK) = 0
open("/var/log/syslog", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND|O_CLOEXEC, 0640) = -1 EACCES (Permission denied)
select(1, NULL, NULL, NULL, {30, 0}) = 0 (Timeout)
select(1, NULL, NULL, NULL, {30, 0}) = 0 (Timeout)
access("/var/log/syslog", F_OK) = 0
open("/var/log/syslog", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND|O_CLOEXEC, 0640) = -1 EACCES (Permission denied)
select(1, NULL, NULL, NULL, {30, 0}) = 0 (Timeout)
select(1, NULL, NULL, NULL, {30, 0}) = 0 (Timeout)

/var/log/syslog is owned by root:adm with permissions 0664 and created by logrotate after the rotation.