forked from science-ation/science-ation
Add a parameter to the launcher just so we can tell which fair its running for
This commit is contained in:
parent
bf0d2bb1de
commit
a3417c7a50
@ -7,7 +7,9 @@ if(!file_exists("../data/logs"))
|
||||
if(!file_exists("../data/logs/.htaccess"))
|
||||
@file_put_contents("../data/logs/.htaccess","Order Deny,Allow\r\nDeny From All\r\n");
|
||||
|
||||
exec("nice php judges_sa.php >../data/logs/judge_scheduler_".date("YmdHis").".log 2>&1 &");
|
||||
//add PHP_SELF just so when we do a process listing on the server we know which fair its running for
|
||||
//the argument does not get used by the script at all
|
||||
exec("nice php judges_sa.php {$_SERVER['PHP_SELF']} >../data/logs/judge_scheduler_".date("YmdHis").".log 2>&1 &");
|
||||
usleep(1500000); // 1.5 second to allow the judges_sa to update the % status to 0% otherwise the status page will think its not running if it gets there too soon
|
||||
header("Location: judges_scheduler_status.php");
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user