drupal/drupal-cron.sh

Mon, 25 Aug 2014 19:07:19 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 25 Aug 2014 19:07:19 +0200
changeset 796
02101011a9bc
permissions
-rw-r--r--

Correct process identification writing of PID file on -P parameter.

michael@529 1 #!/bin/sh
michael@529 2 ##
michael@529 3 ## drupal-cron.sh -- Drupal Cron Job
michael@529 4 ##
michael@529 5
michael@529 6 server=`grep '^Listen' @l_prefix@/etc/drupal/drupal-apache.conf | head -1 | awk '{ print $2; }'`
michael@529 7 @l_prefix@/lib/openpkg/curl --silent --compressed http://$server/cron.php || true
michael@529 8

mercurial