Public bug reported:

$ lsb_release -rd
Description:    Ubuntu 20.04.4 LTS
Release:        20.04

$ apt-cache policy php-common
php-common:
  Installed: (none)
  Candidate: 2:75
  Version table:
     2:75 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

I expect /usr/lib/php/sessionclean to run ever 30 minutes

/etc/cron.d# cat php
# /etc/cron.d/php@PHP_VERSION@: crontab fragment for PHP
#  This purges session files in session.save_path older than X,
#  where X is defined in seconds as the largest value of
#  session.gc_maxlifetime from all your SAPI php.ini files
#  or 24 minutes if not defined.  The script triggers only
#  when session.save_handler=files.
#
#  WARNING: The scripts tries hard to honour all relevant
#  session PHP options, but if you do something unusual
#  you have to disable this script and take care of your
#  sessions yourself.

# Look for and purge old sessions every 30 minutes
09,39 *     * * *     root   [ -x /usr/lib/php/sessionclean ] && if [ ! -d 
/run/systemd/system ]; then /usr/lib/php/sessionclean; fi

Isn't the directory check for /run/systemd/system going to be false on
any modern ubuntu system? And /usr/lib/php/sessionclean is never going
to be executed?

** Affects: php-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1961607

Title:
  sessionclean will never run?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php-defaults/+bug/1961607/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to