[Bug 1961607] Re: sessionclean will never run?

2022-02-22 Thread Lucas Kanashiro
Thanks for taking the time to file this bug and trying to make Ubuntu
better.

In this case, what you described is exactly what is expected. The
/etc/cron.d/php file is expected to trigger the execution of the
/usr/lib/php/sessionclean script only in systems not running systemd.
That's why we have 'if [ ! -d /run/systemd/system ]'.

If that's not true, there is a systemd timer which will schedule the
execution of the 'sessionclean' script.

$ cat /lib/systemd/system/phpsessionclean.timer
[Unit]
Description=Clean PHP session files every 30 mins

[Timer]
OnCalendar=*-*-* *:09,39:00
Persistent=true

[Install]
WantedBy=timers.target
$ cat /lib/systemd/system/phpsessionclean.service 
[Unit]
Description=Clean php session files

[Service]
Type=oneshot
ExecStart=/usr/lib/php/sessionclean
ProtectHome=true
ProtectSystem=true
PrivateTmp=true

Since this does not look like an issue I am marking this bug as Invalid.
Please, if you do not agree with my decision add some more information
and set the bug status back to New and we will take a look again.

** Changed in: php-defaults (Ubuntu)
   Status: New => Invalid

-- 
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

[Bug 1961607] Re: sessionclean will never run?

2022-02-21 Thread Bob Tanner
Sorry.

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

-- 
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