Add koji cleanup sessions on koji database server.
This commit is contained in:
parent
70924e6a89
commit
1dc2945f12
2 changed files with 15 additions and 0 deletions
6
roles/postgresql_server/files/koji-cleanup-sessions.cron
Normal file
6
roles/postgresql_server/files/koji-cleanup-sessions.cron
Normal file
|
@ -0,0 +1,6 @@
|
|||
SHELL=/bin/bash
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
MAILTO=root@fedoraproject.org
|
||||
HOME=/
|
||||
|
||||
0 0 * * * postgres /usr/bin/psql -q -c "DELETE FROM sessions WHERE update_time < now() - '1 day'::interval" koji
|
Loading…
Add table
Add a link
Reference in a new issue