Add koji cleanup sessions on koji database server.

This commit is contained in:
Kevin Fenzi 2014-10-01 20:29:25 +00:00
parent 70924e6a89
commit 1dc2945f12
2 changed files with 15 additions and 0 deletions

View 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