mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-02-16 16:08:40 +00:00
improve process kill
This commit is contained in:
parent
248e336214
commit
54001d1ec4
|
|
@ -703,7 +703,7 @@ final class ApiController extends Controller
|
||||||
// @todo: create a separate function which is called async minTime - time seconds after
|
// @todo: create a separate function which is called async minTime - time seconds after
|
||||||
// This solution is just a workaround for small lists which would otherwise be forced to wait at least 60 seconds.
|
// This solution is just a workaround for small lists which would otherwise be forced to wait at least 60 seconds.
|
||||||
if (OperatingSystem::getSystem() === SystemType::LINUX) {
|
if (OperatingSystem::getSystem() === SystemType::LINUX) {
|
||||||
SystemUtils::runProc('pkill', '-f wkhtmltoimage', true);
|
SystemUtils::runProc('pkill', '-9 -f wkhtmltoimage', true);
|
||||||
} else {
|
} else {
|
||||||
SystemUtils::runProc('taskkill', '/F /IM wkhtmltoimage.exe', true);
|
SystemUtils::runProc('taskkill', '/F /IM wkhtmltoimage.exe', true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user