Working on a friends server earlier this morning I noticed that he had logrotate configured but he did not have a configuration file for Postfix. Below is the quick one I whipped up for his environment including a brief explanation of each line of the configuration file below the script. Following the explanation of the various configurations is the command to actually force logrotate to run in debug mode so you can see what happens.compress, debug, endscript, force, gentoo, Linux, logrotate, logrotate.conf, logrotate.d, missingok, postfix, postrotate, rotate, sharedscripts, switches, weekly
Posts Tagged “missingok”
Dec 20 2009
If you have the resources (CPU + RAM) available on your server then its can be a great troubleshooting tool if you enable MySQL logging which includes server messages, SQL query logs, and slow query logs. If you do not have the resources I would suggest only enable minimal logging such as only server messages and the slow query log since enabling all queries to be written to a file can become expensive rather quickly. Below I discuss enabling three different types of MySQL logging, adding a MySQL configuration file to logrotate, and configuring root to run mysqladmin commands without having to type the password out each time..my.cnf, endscript, flush-logs, log, logrotate, logrotate.conf, missingok, mysql, mysql.log, mysqladmin, mysqld, mysqld.log, nocompress, postrotate, queries, slow query
Apr 10 2009
Setting up log rotation for multiple Ruby on Rails projects on the same Linux server is easy using logrotate. If all of your projects are in the same directory structure it is even easier by using variables to work for each different project as explained below in detail.
First you will need to install logrotate which can be installed on CentOS Linux via yum as shown in the below command.
yum install logrotateCentOS, compress, copytruncate, daily, dateext, delaycompress, gzip, Linux, logrotate, missingok, notifempty, olddir, project, Ruby, sharedscripts, size, yum