mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
20 lines
496 B
Plaintext
20 lines
496 B
Plaintext
/var/log/xrpld/*.log {
|
|
daily
|
|
minsize 200M
|
|
rotate 7
|
|
nocreate
|
|
missingok
|
|
notifempty
|
|
compress
|
|
compresscmd /usr/bin/gzip
|
|
compressext .gz
|
|
postrotate
|
|
# Only signal the daemon if it's actually running; otherwise the RPC
|
|
# call returns a transport error and logrotate marks the rotation as
|
|
# failed, generating recurring errors on stopped nodes.
|
|
if systemctl is-active --quiet xrpld; then
|
|
/usr/bin/xrpld --conf /etc/xrpld/xrpld.cfg logrotate
|
|
fi
|
|
endscript
|
|
}
|