Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add logrotate config for nginx and starman

  • Loading branch information...
commit 4a6c1744a0db6fa11e27452281ab5af312a235ca 1 parent 12706a1
@autarch autarch authored
View
13 system/etc/logrotate.d/nginx
@@ -0,0 +1,13 @@
+/var/log/nginx/*.log /var/log/nginx/vegguide.org/*.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
+}
View
13 system/etc/logrotate.d/vegguide-starman
@@ -0,0 +1,13 @@
+/var/log/vegguide/*.log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 640 root adm
+ sharedscripts
+ postrotate
+ restart vegguide-starman > /dev/null
+ endscript
+}
Please sign in to comment.
Something went wrong with that request. Please try again.