public-inbox.git  about / heads / tags
an "archives first" approach to mailing lists
blob fad40cfcca0002cea45fbed2e007644ef63b0715 665 bytes (raw)
$ git show HEAD:examples/logrotate.conf	# shows this blob on the CLI

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

git clone https://public-inbox.org/public-inbox.git
git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git