Attempt to add support for hhvm in ManageMachines, a=chris
Attempt to add support for hhvm in ManageMachines, a=chris
diff --git a/lib/crawl_daemon.php b/lib/crawl_daemon.php
index 95c169414..939e07454 100644
--- a/lib/crawl_daemon.php
+++ b/lib/crawl_daemon.php
@@ -222,12 +222,17 @@ class CrawlDaemon implements CrawlConstants
}
}
}
+ $php = "php";
+ if(isset($_SERVER['SERVER_SOFTWARE']) &&
+ $_SERVER['SERVER_SOFTWARE'] == 'hphp') {
+ $php = 'hhvm -f';
+ }
if(strstr(PHP_OS, "WIN")) {
$base_dir = str_replace("/", "\\", BASE_DIR);
$script = "start /B php ".
$base_dir."\\bin\\$name.php child %s";
} else {
- $script = "php '".
+ $script = "$php '".
BASE_DIR."/bin/$name.php' child %s < /dev/null ".
" > /dev/null &";
}
@@ -351,4 +356,4 @@ class CrawlDaemon implements CrawlConstants
}
}
- ?>
\ No newline at end of file
+ ?>