Truncate Log File Use the truncate command to shrink or extend the size of each FILE to the specified size:
truncate -s 0 logname.log
The -s option is used to set SIZE to zero. See truncate command man page for more details:
That’s all folks.
I modified these play framework start scripts to replace our original init.d scripts that we used to use for our Play Framework Scala applications. The original scripts were always a bit flaky on us, and well, never really worked 100%. I decided it was time to redo the init.d scripts. In the end, I decided to use sbt-publish plugins to create RPM packages that we […]
NewRelic High Response Times Today I am tasked with troubleshooting why a set of newly provisioned physical RHEL 7.3 (Maipo) servers are showing bad performance in Newrelic. I just setup these new physical servers and I installed our apps into them. The apps themselves are Play Framework Scala based web applications. Upon starting the application, and doing rigorous internal QA on it, I got sign-off […]
So on today’s fun things to deal with, I had a teammate come to me with a problem with one of the servers. It seems nginx just refused to startup. Well it turns out that the reason Nginx wouldn’t start, was because the hard drive was completely full, and there was no space left on the device. But how did I figure this out? 1. […]