]> Sergey Matveev's repositories - public-inbox.git/blob - examples/logrotate.conf
Merge tag 'v1.6.1' into eidx
[public-inbox.git] / examples / logrotate.conf
1 # ==> /etc/logrotate.d/public-inbox <==
2 #
3 # See the logrotate(8) manpage for more information:
4 #    http://linux.die.net/man/8/logrotate
5 /var/log/public-inbox/*.log {
6         weekly
7         missingok
8         rotate 52
9         compress
10         delaycompress
11         notifempty
12         sharedscripts
13         dateext
14         # note the lack of the racy "copytruncate" option in this
15         # config.  public-inbox-*d supports the USR1 signal and
16         # we send it as our "lastaction":
17         lastaction
18                 # systemd users do not need PID files,
19                 # only signal the @1 process since the @2 is short-lived
20                 # For systemd users, assuming you use two services
21                 systemctl kill -s SIGUSR1 public-inbox-httpd@1.service
22                 systemctl kill -s SIGUSR1 public-inbox-nntpd@1.service
23         endscript
24 }