minor changes and init.d script for websocket engine
This commit is contained in:
parent
66ceb93d04
commit
5cf7a0026e
|
@ -97,6 +97,11 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
$os = strtolower(PHP_OS);
|
$os = strtolower(PHP_OS);
|
||||||
if (substr($os, 0, 3) !== 'win') {
|
if (substr($os, 0, 3) !== 'win') {
|
||||||
|
if (is_executable($config['gotty']) === false) {
|
||||||
|
echo 'Failed to execute gotty ['.$config['gotty']."]\n";
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
// Kill previous gotty running.
|
// Kill previous gotty running.
|
||||||
shell_exec('killall "'.$config['gotty'].'" >/dev/null 2>&1');
|
shell_exec('killall "'.$config['gotty'].'" >/dev/null 2>&1');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue