I have attached an upgrade to my previous cron-curl.sh script.
The improvments allow multiple sites to be cron'd using the same scripts/cron-curl.sh file ...without a need to create multiple shell scripts for each domain running on the same Drupal code base.
This works by accepting a parameter to the shell script, this can be a domain name, or a complete domain name & sub-directory.
Its execution for 'dev.example.com' would be would be as follows:
*/5 * * * * /var/www/html/drupal/scripts/cron-curl.sh dev.example.com /dev/null 2>&1
The same parameter system could be implemented in the other Drupal bundled scripts.
Comment | File | Size | Author |
---|---|---|---|
#9 | scripts-cron.patch | 1.11 KB | lilou |
#2 | cron-curl.patch | 518 bytes | Uwe Hermann |
cron-curl_0.sh | 67 bytes | budda |
Comments
Comment #1
buddaSimple but handy.
Comment #2
Uwe Hermann CreditAttribution: Uwe Hermann commentedI rolled a patch for HEAD. Untested, though.
Comment #3
Dries CreditAttribution: Dries commentedLooks handy. I'd be happy to commit this iff:
Comment #4
drummComment #5
Uwe Hermann CreditAttribution: Uwe Hermann commentedHow about merging all of the scripts, dynamically checking whether lynx, wget, curl, links, w3m, whatever is available and using the first one which is found? Does that make sense?
Comment #6
buddaAny chance this cron-curl script is going to turn up in Core 6.x? It's been hanging around for ages, and is so small it hardly needs thinking about?
Comment #7
ChrisKennedy CreditAttribution: ChrisKennedy commentedThe comments in #3 still apply.
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedanyone up for documenting this?
Comment #9
lilou CreditAttribution: lilou commentedReroll according to Dries comment #3
Just need to update documentation.
Comment #10
aspilicious CreditAttribution: aspilicious commentedNeeds reroll for D8 (with proper patch format).
Comment #11
swentel CreditAttribution: swentel commentedIt also needs the cron key now, should'nt we just remove these files, I guess Drush is getting more and more widespread nowdays.
Comment #12
rcross CreditAttribution: rcross at CrossFunctional commentedComment #13
jhedstromComment #28
smustgrave CreditAttribution: smustgrave at Mobomo commentedSince this moved to PNMI over 3 months ago, which is the threshold going to close as outdated.
If still a valid request please reopen address the tags added in #13