minor changes and init.d script for websocket engine

This commit is contained in:
fbsanchez 2019-10-23 15:23:35 +02:00
parent 66ceb93d04
commit 5cf7a0026e
1 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,11 @@ error_reporting(E_ALL);
$os = strtolower(PHP_OS);
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.
shell_exec('killall "'.$config['gotty'].'" >/dev/null 2>&1');