AlternC/src/cron_users.sh

25 lines
461 B
Bash
Raw Normal View History

#!/usr/bin/php -q
<?php
2012-04-12 14:06:47 +00:00
/**
* Launch the users crontab for AlternC
* php, parallel-curl, secured mode.
**/
2012-04-12 14:06:47 +00:00
require_once("/usr/share/alternc/panel/class/config_nochk.php");
ini_set("display_errors", 1);
2012-04-12 14:06:47 +00:00
if (file_exists("/var/run/alternc/jobs-lock")) {
echo "jobs-lock exists, did you ran alternc.install?\n";
echo "canceling cron_users\n";
exit(1);
}
2012-04-12 14:06:47 +00:00
if (isset($argv[1]) && $argv[1]=="debug") {
$GLOBALS["DEBUG"]=true;
2012-04-12 14:06:47 +00:00
}
$cron->execute_cron();