blob b0d1351644c3e00dbe9500dadaee90149335f104 1246 bytes (raw)
name: examples/logrotate.conf # note: path name is non-authoritative(*)
# 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:
# Modify the following glob to match the logfiles your app writes to:
# this first block is mostly just personal preference, though
# I wish logrotate offered an "hourly" option...
compress # must use with delaycompress below
# this is important if using "compress" since we need to call
# the "lastaction" script below before compressing:
# note the lack of the evil "copytruncate" option in this
# config. yahns supports the USR1 signal and we send it
# as our "lastaction" action:
# 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 firstname.lastname@example.org
# assuming your pid file is in /var/run/yahns_app/pid
test -s $pid && kill -USR1 "$(cat $pid)"
solving b0d1351 ...
found b0d1351 in https://yhbt.net/yahns.git/
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).