• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Question Which Shell Should be used for Cronjobs?

MHC_1

Regular Pleskian
Server operating system version
alma linux 9.7
Plesk version and microupdate number
18.0.76#4
As you may be aware, cronjobs on Plesk are a mess. I am trying to work out how to run Cron PHP scripts. I have numerous issues previously mentioned on this forum with some mixed results and some badly long winded solutions to the way Plesk chooses to deal with Cronjobs .

Anyways, some cronjobs work ok. Others do not. No cron jobs ever work from the Plesk scheduled task GUI.

I am looking into the
Code:
/var/logs/cron
file and seeing references to
Code:
/var/spool/cron/<account>
. Within these I see multiple cron commands but they HAVE DIFFERENT SHELLS.
MAILTO="[email protected]"
SHELL="/bin/sh"
#@desc: CalProcessing
<line removed as can't post to forum>

MAILTO="[email protected]"
SHELL="/usr/local/psa/bin/chrootsh"
#@desc: Cal Processing 2
<line removed as can't post to forum>

So; both of these shells are present and both of these Cronjobs are present but I can't confirm either of these Crons work in the wild.

WHICH SHELL IS MORE LIKELY TO SUCCEED?

WHY ARE THEY DIFFERENT?
 
Back
Top