diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index cf01d194..e70b53e0 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -47,8 +47,9 @@ class Shutdown extends Component public function shutdown(): void { clearstatcache(storage()); - exec('ls -alh /.dockerenv', $output, $cod); - if ($cod === 0 && !empty($output)) { + $output = shell_exec('ls -alh /.dockerenv'); + var_dump($output); + if (!empty($output)) { return; } diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 6c6bd7d6..38387366 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -43,8 +43,6 @@ class ServerInotify extends Process { set_error_handler([$this, 'onErrorHandler']); $this->dirs = Config::get('inotify', [APP_PATH]); - - var_dump(extension_loaded('inotify')); if (extension_loaded('inotify')) { $this->inotify = inotify_init(); $this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;