unix - PHP garbage collector cronjob to run every 3 hours -
php sessions stored in files. php.ini configured consider garbage sessions "are older" (have not been modified) in last 3 hours. there cronjob in /etc/cron.d/php5 deletes sessions. configured run every 30 min , change every hour. how can modify it? crontab -l command not listing cronjob. why? thanks
well, it's not in crontab, it's in /etc/cron.d/php5 file. have there. guess system:
09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete just modify times run every hour instead:
9 * * * * <<the rest here>>
Comments
Post a Comment