291158160d
Not having one logrotate file produced an error during rpmlint. It makes sense to have one logrotate file after Memgraph is installed because it's easier to manage config files. There are two logrotate files in the codebase, one for Community and one for Enterprise edition. Having rotate files per offering also makes sense because offerings are affected less often compared to the features. It's easier to maintain.
14 lines
341 B
Plaintext
14 lines
341 B
Plaintext
# logrotate configuration for Memgraph Community
|
|
# see "man logrotate" for details
|
|
|
|
/var/log/memgraph/memgraph.log {
|
|
# rotate log files weekly
|
|
weekly
|
|
# keep 5 weeks worth of backlog
|
|
rotate 5
|
|
# send SIGUSR1 to notify memgraph to recreate logfile
|
|
postrotate
|
|
/usr/bin/killall -s SIGUSR1 memgraph
|
|
endscript
|
|
}
|