by kelp · 6y ago · 0 comments
I don’t really remember the tech stack, but it was something like 10-15 web servers, probably pentium II or III.
One detail I do remember is the original setup had an Apache log rotation script that would try several times to restart Apache and if it didn’t succeed, it would reboot the server. This ran nightly...
Not sure what bug or issue they were working around. But I thought it was quite an aggressive solution!
"oh, we forgot the print. lets retry tonight."
"darn, did not happen. lets leave this part in our infra for now until we trigger the edgecase again."
5 weeks (or days...) later: "damn, why did we do that again? better not touch it"
i love it when i find myself cargo culting code like that and finally have the time (and courage) to remove it :)
What’s your log rotation code look like?