I'm having a problem with my web server: when it's been up for a long time, and then it goes down for some reason, it takes forever to boot.
My workaround to this was to create a cron to reboot the server from time to time (I've been insulted for this, be kind). The reboot was so fast that the server was able to respond to the requests before they timed out, so I was cool with it.
But now I've been told that what might be causing this is fsck being forced after X days, and also after Y mounts, so my fix won't help much.
So the question is what should I do with fsck? Force it to run more frequently, or disable it? Can it run at any time, or it must be during boot? An example of how to do it with tune2fs is also welcome.