yahns Ruby server user/dev discussion
 help / color / Atom feed
b0d1351644c3e00dbe9500dadaee90149335f104 blob 1246 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
# 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
		# systemd users do not have PID files,
		# only signal the @1 process since the @2 is short-lived
		# and only runs while @1 is restarting.
		systemctl kill -s SIGUSR1 yahns@1.service

		# 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
}
debug log:

solving b0d1351 ...
found b0d1351 in https://yhbt.net/yahns.git

yahns Ruby server user/dev discussion

Archives are clonable:
	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.yahns
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.yahns

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox