3 messages in ru.sysoev.nginxRe: Logrotating the log files
FromSent OnAttachments
Jeremy HubertJan 19, 2007 9:20 pm 
Igor SysoevJan 20, 2007 12:07 am 
José ParrellaJan 20, 2007 3:41 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Logrotating the log filesActions...
From:José Parrella (jose@public.gmane.org)
Date:Jan 20, 2007 3:41:25 am
List:ru.sysoev.nginx

Jeremy Hubert escribió:

So.. any tips? Has anyone else done this?

This is the logrotate file that we use in nginx's Debian package. Note that the root:adm permissions might need further revision in your own system, as well as the logs and pid file location. I hope it helps.

<snip> /var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts postrotate [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid` endscript } </snip>