Sha256: 727652b1e5539c9845479f25883618400d615c611e5415bc1b7e9d1f4e77eda0

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

<%= shared_path %>/log/*.log {
  daily
  missingok
  rotate 180
  compress
  dateext
  delaycompress

  lastaction
    pid=<%= unicorn_pid %>
    test -s $pid && kill -USR1 "$(cat $pid)"
  endscript

  prerotate
    if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
      run-parts /etc/logrotate.d/httpd-prerotate; \
    fi \
  endscript

  postrotate
    nginx_pid=<%= nginx_pid %>
    [ ! -f $nginx_pid ] || kill -USR1 `cat $nginx_pid`
  endscript
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-nginx-unicorn-0.0.8 lib/generators/capistrano/nginx_unicorn/templates/logrotate.erb
capistrano-nginx-unicorn-0.0.7 lib/generators/capistrano/nginx_unicorn/templates/logrotate.erb