21200: copied branch from arvados-workbench2 Arvados-DCO-1.1-Signed-off-by: Lisa...
[arvados.git] / tools / salt-install / config_examples / single_host / multiple_hostnames / pillars / logrotate_api.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 # Refer to logrotate-formula's documentation for information about customization
7 # https://github.com/salt-formulas/salt-formula-logrotate/blob/master/README.rst
8
9 logrotate:
10   jobs:
11     arvados-api:
12       path:
13         - /var/www/arvados-api/shared/log/*.log
14       config:
15         - daily
16         - missingok
17         - rotate 365
18         - compress
19         - nodelaycompress
20         - copytruncate
21         - sharedscripts
22         - postrotate
23         - '  [ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`'
24         - endscript