| От | Ragnar Kjørstad |
|---|---|
| Тема | Re: [7.0.2] rotating log files ... |
| Дата | |
| Msg-id | 20000828212313.A19112@vestdata.no обсуждение исходный текст |
| Ответ на | Re: [7.0.2] rotating log files ... (Chris Ryan <chris@greatbridge.com>) |
| Ответы |
Re: [7.0.2] rotating log files ...
|
| Список | pgsql-admin |
On Mon, Aug 28, 2000 at 02:31:29PM -0400, Chris Ryan wrote: > It's not normally a good idea to move/remove files that a process has an > open file handle for. The safest way is to copy the file to a new > location/name then cat /dev/null > logfile What's wrong with moving the file when it's in use? Copying the file will take much longer, and you might loose log-entries that are written after cp but before truncate. -- Ragnar Kjorstad
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера