Alternc  latest
Alternc logiel libre pour l'hébergement
cron_users.sh
Go to the documentation of this file.
1 #!/usr/bin/php -q
2 <?php
3 
4 /**
5  * Launch the users crontab for AlternC
6  * php, parallel-curl, secured mode.
7  **/
8 
9 require_once("/usr/share/alternc/panel/class/config_nochk.php");
10 ini_set("display_errors", 1);
11 
12 if (file_exists("/run/alternc/jobs-lock")) {
13  echo "jobs-lock exists, did you ran alternc.install?\n";
14  echo "canceling cron_users\n";
15  exit(1);
16 }
17 
18 if (isset($argv[1]) && $argv[1]=="debug") {
19  $GLOBALS["DEBUG"]=true;
20 }
21 
22 $cron->execute_cron();
23 
24