This commit is contained in:
2021-04-19 14:48:06 +08:00
parent 13d53115cc
commit 31fdb9ec7b
2 changed files with 3 additions and 4 deletions
+3 -2
View File
@@ -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;
}
-2
View File
@@ -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;