Your message dated Thu, 9 Jul 2020 09:35:34 +0200
with message-id <[email protected]>
and subject line Re: Bug#964575: php-common: cronjob in /etc/cron.d/php does
not execute because of if statement
has caused the Debian Bug report #964575,
regarding php-common: cronjob in /etc/cron.d/php does not execute because of if
statement
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
964575: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964575
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php-common
Version: 2:69
Systsem information:
Debian 10.4
PHP 7.3
Short description:
The cron job below never gets executed
09,39 * * * * root [ -x /usr/lib/php/sessionclean ] && if [ ! -d
/run/systemd/system ]; then /usr/lib/php/sessionclean; fi
In previous Debian versions the “if [ ! -d /run/systemd/system ]; then”
statement was not present.
This statement is the reason why the cron job does not execute. From my
understanding it check whether the “/run/systemd/system” directory does not
exist, which subsequently fails, since that particular directory is always
present.
Can you please advise if this intended? If so what is the actual purpose of the
if statement and why was it added to Debian Buster?
--- End Message ---
--- Begin Message ---
There’s a systemd timer unit that cleans the session, so this statement ensures
the sessions doesn’t get cleaned twice.
Ondrej
--
Ondřej Surý <[email protected]>
> On 8 Jul 2020, at 23:03, Stefan Grosaru <[email protected]>
> wrote:
>
>
> Package: php-common
> Version: 2:69
>
> Systsem information:
> Debian 10.4
> PHP 7.3
>
> Short description:
>
> The cron job below never gets executed
>
> 09,39 * * * * root [ -x /usr/lib/php/sessionclean ] && if [ ! -d
> /run/systemd/system ]; then /usr/lib/php/sessionclean; fi
>
> In previous Debian versions the “if [ ! -d /run/systemd/system ]; then”
> statement was not present.
>
> This statement is the reason why the cron job does not execute. From my
> understanding it check whether the “/run/systemd/system” directory does not
> exist, which subsequently fails, since that particular directory is always
> present.
>
> Can you please advise if this intended? If so what is the actual purpose of
> the if statement and why was it added to Debian Buster?
>
--- End Message ---