[plug] Logrotate Killing Apache (Again)

Timothy White weirdit at gmail.com
Sun Dec 18 17:30:54 WST 2005


Ok, just an addition. I have got pon to show me what FD's are being
passed to it. I get the following:
lr-x------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/0 -> /dev/null
l-wx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/1 ->
/var/log/apache2/error.log
l-wx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/2 ->
/var/log/apache2/error.log
vdir: /proc/self/fd/255: No such file or directory
lrwx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/3 ->
socket:[35435256]
lr-x------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/4 ->
pipe:[35435260]
l-wx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/5 ->
pipe:[35435260]
l-wx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/6 ->
/var/log/apache2/error.log
l-wx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/7 ->
/var/log/apache2/access.log
lrwx------  1 www-data www-data 64 Dec 18 17:26 /proc/self/fd/8 ->
socket:[35853389]
vdir: /proc/self/fd/9: No such file or directory

But ppp only has the following (6 and 7 are closed in pon before ppp is called)
lrwx------  1 root root 64 2005-12-18 17:26 0 -> /dev/null
lrwx------  1 root root 64 2005-12-18 17:29 1 -> /dev/null
lrwx------  1 root root 64 2005-12-18 17:29 10 -> socket:[35857157]
lrwx------  1 root root 64 2005-12-18 17:29 11 -> socket:[35857158]
lrwx------  1 root root 64 2005-12-18 17:29 12 -> /var/run/pppd.tdb
lrwx------  1 root root 64 2005-12-18 17:29 13 -> /dev/ttyS0
lrwx------  1 root root 64 2005-12-18 17:29 14 -> /dev/ppp
lrwx------  1 root root 64 2005-12-18 17:29 15 -> /dev/ppp
lrwx------  1 root root 64 2005-12-18 17:29 2 -> /dev/null
lrwx------  1 root root 64 2005-12-18 17:29 3 -> socket:[35435256]
lr-x------  1 root root 64 2005-12-18 17:29 4 -> pipe:[35435260]
l-wx------  1 root root 64 2005-12-18 17:29 5 -> pipe:[35435260]
lrwx------  1 root root 64 2005-12-18 17:29 6 -> socket:[35857154]
lrwx------  1 root root 64 2005-12-18 17:29 7 -> /dev/null
lrwx------  1 root root 64 2005-12-18 17:29 8 -> socket:[35853389]
l-wx------  1 root root 64 2005-12-18 17:29 9 -> /var/log/ppp.debug

So I'll try closing 1-7 in pon, and see if that helps.

Tim
--
Linux Counter user #273956



More information about the plug mailing list