| 13 | |
| 14 | == tmpreaper == |
| 15 | |
| 16 | PHP session files are deleted when older than a day via `tmpreaper` which was setup on ticket:44#comment:2 and is configured via `/etc/tmpreaper.conf` which contains: |
| 17 | |
| 18 | {{{ |
| 19 | TMPREAPER_PROTECT_EXTRA='' |
| 20 | TMPREAPER_TIME=1d |
| 21 | TMPREAPER_DIRS='/tmp/. /var/www/piwik/tmp/. /var/www/mediawiki/tmp/. /var/www/mediawiki/w/tmp/. /var/www/owncloud/tmp/.' |
| 22 | TMPREAPER_DELAY='256' |
| 23 | TMPREAPER_ADDITIONALOPTIONS='' |
| 24 | }}} |
| 25 | |
| 26 | And is run via cron: |
| 27 | |
| 28 | {{{ |
| 29 | crontab -l -u piwik | grep -v ^# |
| 30 | 05 23 * * * tmpreaper /var/www/piwik/tmp |
| 31 | crontab -l -u owncloud | grep -v ^# |
| 32 | 15 23 * * * tmpreaper /var/www/owncloud/tmp |
| 33 | crontab -l -u mediawiki | grep -v ^# |
| 34 | 10 23 * * * tmpreaper /var/www/mediawiki/w/tmp /var/www/mediawiki/tmp |
| 35 | }}} |