From 79d2f3186cad9d2412166c9bd414d73dd97cb3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 29 Jan 2016 16:03:35 +0100 Subject: [PATCH] Add startup warning that the PCNTL extensions are missing --- console.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/console.php b/console.php index 23f40a1543..2073654fa8 100644 --- a/console.php +++ b/console.php @@ -76,6 +76,10 @@ try { exit(1); } + if (!function_exists('pcntl_signal')) { + echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL; + } + $application = new Application(\OC::$server->getConfig()); $application->loadCommands(new ConsoleOutput()); $application->run();