Created
May 17, 2015 10:23
-
-
Save zerthimon/4e15f4d04c888dee0410 to your computer and use it in GitHub Desktop.
php5 session cleanup (crontab) in chrooted pools (of php-fpm)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Look for and purge old sessions every 30 minutes | |
*/30 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/www/pools ] && find /var/www/pools -path "*/var/lib/php5" -exec /usr/lib/php5/sessionclean {} $(/usr/lib/php5/maxlifetime) \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment