Sha256: 03871900ff0723fede87fba7378e516f2510795838bf89f7d787dad1c4e22eac

Contents?: true

Size: 1.03 KB

Versions: 24

Compression:

Stored size: 1.03 KB

Contents

# To the extent possible under law, Eric Wong has waived all copyright and
# related or neighboring rights to this examples
#
# example logrotate config file, I usually keep this in
# /etc/logrotate.d/yahns_app on my Debian systems
#
# See the logrotate(8) manpage for more information:
#    http://linux.die.net/man/8/logrotate

# Modify the following glob to match the logfiles your app writes to:
/var/log/yahns_app/*.log {
	# this first block is mostly just personal preference, though
	# I wish logrotate offered an "hourly" option...
	daily
	missingok
	rotate 180
	compress # must use with delaycompress below
	dateext

	# this is important if using "compress" since we need to call
	# the "lastaction" script below before compressing:
	delaycompress

	# note the lack of the evil "copytruncate" option in this
	# config.  yahns supports the USR1 signal and we send it
	# as our "lastaction" action:
	lastaction
		# assuming your pid file is in /var/run/yahns_app/pid
		pid=/var/run/yahns_app/pid
		test -s $pid && kill -USR1 "$(cat $pid)"
	endscript
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
yahns-1.12.5 examples/logrotate.conf
yahns-1.12.4 examples/logrotate.conf
yahns-1.12.3 examples/logrotate.conf
yahns-1.12.2 examples/logrotate.conf
yahns-1.12.1 examples/logrotate.conf
yahns-1.12.0 examples/logrotate.conf
yahns-1.11.0 examples/logrotate.conf
yahns-1.10.0 examples/logrotate.conf
yahns-1.9.0 examples/logrotate.conf
yahns-1.8.0 examples/logrotate.conf
yahns-1.7.0 examples/logrotate.conf
yahns-1.6.0 examples/logrotate.conf
yahns-1.5.0 examples/logrotate.conf
yahns-1.4.0 examples/logrotate.conf
yahns-1.3.1 examples/logrotate.conf
yahns-1.3.0 examples/logrotate.conf
yahns-1.2.0 examples/logrotate.conf
yahns-1.1.0 examples/logrotate.conf
yahns-1.0.0 examples/logrotate.conf
yahns-0.0.3 examples/logrotate.conf