Sha256: ac586b968e34f44435de0a5f980d8585d46af3cbb462afcc2bd8dc51722efca3

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

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

  lastaction
    pid=<%= fetch(: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
capistrano3-nginx_unicorn-0.1 lib/generators/capistrano3/nginx_unicorn/templates/logrotate.erb
capistrano3-nginx_unicorn-0.0.7 lib/generators/capistrano3/nginx_unicorn/templates/logrotate.erb
capistrano3-nginx_unicorn-0.0.6 lib/generators/capistrano3/nginx_unicorn/templates/logrotate.erb