Sha256: 0449e659f5765dbbc0c8873f4bcc6448a47e6d49d6b71978d1f8725c67a42659

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 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
    [ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
  endscript
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-nginx-unicorn-0.0.6 lib/generators/capistrano/nginx_unicorn/templates/logrotate.erb
capistrano-nginx-unicorn-0.0.5 lib/generators/capistrano/nginx_unicorn/templates/logrotate.erb
capistrano-nginx-unicorn-0.0.4 lib/generators/capistrano/nginx_unicorn/templates/logrotate.erb