refs #4610 trigger archiving using cli instead of http
Merge remote-tracking branch 'origin/master' into 4610_cli_archiving
refs #4610 worked on executing cli commands in parallel but not tested yet
refs #4610 simplified the fallback if async is not supported, tests and fixes for output class
refs #4610 fix headers
refs #4610 use existing methods, lock does not work on Windows (yet), save locks in a separate folder
refs #4610 I moved the Lock class to CliMulti as it does not 100% work on windows and is only used in CliMulti so far. As the Lock class can be quite useful and maybe needed in other use cases it would be nice to have it somewhere under core or so as it is not directly related to CLI. We might have to move it later again. Need to find a better solution for windows
refs #4610 tests for cliMulti and loads of bugfixes
refs #4610 Pid => Process
refs #4610 make sure the fallback mode works in case async is not supported
refs #4610 use a command to execute a request, this way we do not have to bootstrap everything again and we already make sure it is only executed from the command line
refs #4610 make sure the command awk exist
refs #4610 store everything in climulti folder for easier cleanup later, some other optimizations
refs #4610 prevent some notices like "failed to read from stream" which happens if a subprocess tries to write to a file and the archiver just tries to file_get_content at the same time. So file_exists returned true just a few ms before but while trying to read it fails
refs #4610 if a process does not start after 8 seconds, finish it as the process probably will not start anyway
refs #4610 do not start the actual process in case it was marked as finished meanwhile
refs #4610 simplified some logic, fallback to http on windows, redirect the output of php to get output even if piwik exits
refs #4610 simplified, delete old files that were not cleaned up
refs #4610 I do not like to have the climulti in http class as one could assume it works on all systems etc. Only use it for archiving for now
refs #4610 some code tweaks and optimizations