mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
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);
|
||||
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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user