Michael Boman <[EMAIL PROTECTED]> wrote:
>I have big problems to get cyclog to log. Here is my SMTP init script:
>
>/usr/local/bin/supervise /var/run/smtp \
>/usr/local/bin/tcpserver -v -H -R -x/etc/tcp.smtp.cdb -c 1000 \
>-u 1001 -g 101 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 \
>| setuser qmaill cyclog -s 1000000 /var/log/smtp &
>
>(its _one_ line in the script, but broken down here for readability)
>
>mailhosting:/var/log/smtp# ls -la
>total 7
>drwxr-xr-x 2 qmaill nofiles 1024 Jan 25 20:12 ./
>drwxr-xr-x 13 root root 1024 Jan 25 19:28 ../
>-rw-r----- 1 qmaill nofiles 60 Jan 25 19:29 \@00000948799783
>-rw-r----- 1 qmaill nofiles 60 Jan 25 19:30 \@00000948799830
>-rw-r----- 1 qmaill nofiles 60 Jan 25 19:32 \@00000948799973
>-rw-r----- 1 qmaill nofiles 60 Jan 25 20:12 \@00000948802375
>-rw-r----- 1 qmaill nofiles 60 Jan 25 20:12 \@00000948802376
When cyclog closes a file, it changes the mode to 440. It looks like
something is killing cyclog--or tcpserver--which causes it to open a
new file.
-Dave