chapterjason
New Pleskian
- Server operating system version
- Debian 12.8
- Plesk version and microupdate number
- v18.0.66_build1800241206.15
Hello,
I use scheduled tasks to run a PHP script under a specific version for a specific subscription.
The PHP script does some tasks, simplified to starting a screen (with -dmS to make it detached and prevent it from being killed when the parent process—the cron job itself(?)—is done). It also checks if the screen is already running, etc.
What I’ve realized is that it works if I have a cron job set to run every 5 minutes (or at whatever interval I want), but if I try to start it manually by clicking "Run now," it gets killed somehow (likely by the parent process). I couldn’t find any documentation explaining the difference. It would be great if it worked when using "Run now" as well.
Cheers!
I use scheduled tasks to run a PHP script under a specific version for a specific subscription.
The PHP script does some tasks, simplified to starting a screen (with -dmS to make it detached and prevent it from being killed when the parent process—the cron job itself(?)—is done). It also checks if the screen is already running, etc.
What I’ve realized is that it works if I have a cron job set to run every 5 minutes (or at whatever interval I want), but if I try to start it manually by clicking "Run now," it gets killed somehow (likely by the parent process). I couldn’t find any documentation explaining the difference. It would be great if it worked when using "Run now" as well.
Cheers!