Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 18, 2011 4:44 pm 
Offline
Senior Newbie

Joined: Thu Jun 23, 2011 12:57 pm
Posts: 19
Ok so I am using Logrotate to take care of my Nginx logs in my users individual web site directories. See below:

Code:

/home/*/logs/*.log {
    daily
    missingok
    rotate 3
    compress
    delaycompress
    notifempty
    sharedscripts
    prerotate
        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
       run-parts /etc/logrotate.d/httpd-prerotate; \
   fi; \
    endscript
    postrotate
   [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
    endscript
}


This is basically a replica of the nginx logrotate script that is already in /etc/logrotate.d

I guess my question is. Is this the best way to accomplish this. What are you guys doing?[/code]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group