16 lines
No EOL
413 B
Django/Jinja
16 lines
No EOL
413 B
Django/Jinja
/var/log/postgresql/*.log {
|
|
daily
|
|
rotate 7
|
|
missingok
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 640 postgres postgres
|
|
sharedscripts
|
|
postrotate
|
|
# Signal PostgreSQL to reopen log files
|
|
if [ -f /var/run/postgresql/{{ postgresql_version }}-main.pid ]; then
|
|
/usr/bin/pg_ctlcluster {{ postgresql_version }} main reload > /dev/null
|
|
fi
|
|
endscript
|
|
} |