Top articles and links related to Tradebit:

Facebook Integration

Converting files

Affiliate program





Geek article: when logrotate kills your apache

Ok folks, I normally do not want to get to technical in this blog, but I have searched for hours until I found the solution to one of the more serious problems we had in the last days.

Tradebit now has literally hundreds of requests per minute on the servers, even in the early morning. But in that early morning, we rotate our logfiles away to keep them small and nice.

Now every second or third day, the webserver tried to restart and move the logs away. Bad enough, it did not come back after starting the rotation process.

I found the logrotation details in /etc/logrotate.d/httpd on Red Hat Linux, you may look elsewhere, if you have another distribution.

The solution to that problem is, that you might restart the server with the “-HUP” signal right now, which means that your webserver will wait until all its children have exited and the main process will start again.

If a customer was downloading from that particular webserver, the system waited and did not accept new connections…

We have now changed the “-HUP” to “-USR1″, which is like a graceful restart and NOT freezing the system on a server restart.

I truly hope that helps other sysadmins, who have the same problems on Linux.

del.icio.us Facebook StumbleUpon

One Response to “Geek article: when logrotate kills your apache”

  1. Boris M Says:

    Thanks!
    Logrotate on my system kills some other daemons and now I understand why

    BM

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image


spacer spacer spacer
sell downloads, mp3, software The Digital Outlet
Member Login
  Password lost?   Sign up
endGrey
Browse Files Publish/Sell My Purchases Forum Blog Help About
Shopping Cart:
now in your cart
cart (0)
Items