WIP new Worker class and worker shell script

This commit is contained in:
2010-08-14 18:24:49 +01:00
parent 474cfb2853
commit 83bb33c5e4
2 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
define('HBC_File', 'worker');
require_once '../config.php';
require_once HandBrakeCluster_Lib . 'HandBrakeCluster/Main.class.php';
try {
$main = HandBrakeCluster_Main::instance();
$smarty = $main->smarty();
$worker = new HandBrakeCluster_Worker();
$worker->start();
} catch (HandBrakeCluster_Exception $e) {
die("Uncaught Exception: " . $e->getMessage());
}
?>