Hi Cloudron team,
We've encountered an issue with the default CRON configuration for the FreeScout app on Cloudron.
The default CRON script installed for FreeScout is as follows:
#!/bin/bash
set -eu
cd /app/code
echo "=> Run cron tasks"
# when run with --no-interaction it will not daemonize (unlike in the supervisor config for it)
/usr/local/bin/gosu www-data:www-data php artisan schedule:run --no-interaction
The problem lies in the --no-interaction flag. According to FreeScout's official documentation (link), this flag should NOT be added to the command, as it prevents the background queue:work daemon from running. This behavior is exactly what we're experiencing.
Unfortunately, we cannot modify the default CRON file in /app/pkg/cron.sh since it is read-protected. Additionally, when we attempt to add the correct CRON command to the Cloudron CRON section:
* * * * * php /app/code/artisan schedule:run >> /dev/null 2>&1
It results in duplicate CRON jobs being executed, further complicating the situation.
Could you please advise on how to resolve this? Ideally, we need the default CRON script adjusted to align with FreeScout's documentation or an alternative solution that allows us to override the existing configuration without conflicts.
Thanks for your assistance!
Best regards,
Phil