Fri Jun 24 02:26:58 PDT 2011
- Previous message: [Slony1-general] Info log file slony
- Next message: [Slony1-general] How is replication of TRIGGERS handled under Slony?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 23/06/2011 15:56, francescoboccacci at libero.it a écrit : > > Hi, > this is my logrotate.conf file: > > > # see "man logrotate" for details > # rotate log files weekly > weekly > > # keep 4 weeks worth of backlogs > rotate 4 > > # create new (empty) log files after rotating old ones > create > > # uncomment this if you want your log files compressed > #compress > > # packages drop log rotation information into this directory > include /etc/logrotate.d > > # no packages own wtmp, or btmp -- we'll rotate them here > /var/log/wtmp { > missingok > monthly > create 0664 root utmp > rotate 1 > } > > /var/log/btmp { > missingok > monthly > create 0660 root utmp > rotate 1 > } > > /home/prod1/log_slony/*.log { > weekly > rotate 2 > copytruncate > delaycompress > compress > notifempty > missingok > } > > # system-specific logs may be configured here > > Do you think is right?Do i have to restart some process after my modify? > logrotate is usually issued by cron. So you don't have anything special to do. The configuration I gave was for a weekly rotate, if your files are overgrowing on a daily basis, you can have daily rotate 7 for instance. Regards, - -- Stéphane Schildknecht Loxodata Contact régional PostgreSQL -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4EWGIACgkQA+REPKWGI0GqtQCg2ldsiuQCTy/wbp2S2R/mGd6G rCsAoILfPsQVdyAAj3JLk+yK8ZKbeD7z =3skK -----END PGP SIGNATURE-----
- Previous message: [Slony1-general] Info log file slony
- Next message: [Slony1-general] How is replication of TRIGGERS handled under Slony?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list