Skip to content

Commit

Permalink
Set user and group for logrotate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Wigge committed Jan 17, 2019
1 parent 4bd6d06 commit d181e92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/roles/debops.gunicorn/defaults/main.yml
Expand Up @@ -85,7 +85,7 @@ gunicorn__apt_preferences__dependent_list:
gunicorn__logrotate__dependent_config:

- filename: 'gunicorn'
logs: [ '/var/log/gunicorn/*.log', '/var/log/gunicorn/*/*.log' ]
logs: [ '/var/log/gunicorn/*/*.log' ]
divert: True
options: |
rotate 4
Expand All @@ -95,6 +95,7 @@ gunicorn__logrotate__dependent_config:
notifempty
weekly
sharedscripts
su {{ gunicorn__user }} {{ gunicorn__group }}
postrotate: |
invoke-rc.d --quiet gunicorn reload >/dev/null
comment: 'Log rotation for Green Unicorn logs'
Expand Down

0 comments on commit d181e92

Please sign in to comment.