I have new install of Ubuntu Karmic 9.10 installed with using the perfect setup. Proftpd server is killed every night by ftp_logs.php.
Dec 15 23:59:01 www.example.com proftpd www.example.com: ProFTPD killed (signal 15)
Dec 15 23:59:01 www.example.com proftpd www.example.com: ProFTPD 1.3.2 standalone mode SHUTDOWN
When I run cron command I get:
# /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php
grep: /var/log/xferlog.0: No such file or directory
and proftpd goes down.
# ls -l /var/log/ |grep xferlog
-rw-r--r-- 1 root root 0 Dec 13 01:39 xferlog
# ls -l /var/log/proftpd/ |grep xferlog
-rw-r----- 1 root adm 248626 Dec 16 10:27 xferlog
-rw-r--r-- 1 root root 833 Dec 13 18:55 xferlog.1
Globally I have only one log file with 0 suffix:
# find /var/log -name "*.0"
and a lot of files with suffix 1 and higher:
# find /var/log -name "*.1"
Where can I set file names which are checked by ftp_logs.php? Or is it better to set suffix in proftp logrotate config file by start directive?