Warn more about missing capabilities, and advise what to do on SLES11.

Change-Id: I93587db6fa32c1c505877c20857799be71ee162f
This commit is contained in:
Jan Holesovsky 2017-08-10 11:11:05 +02:00
parent 4be7a6cb16
commit 894c5f2cc2
2 changed files with 5 additions and 1 deletions

View file

@ -501,7 +501,11 @@ int main(int argc, char** argv)
LOG_INF("Note: LD_BIND_NOW is not set.");
if (!NoCapsForKit && !haveCorrectCapabilities())
{
std::cerr << "FATAL: Capabilities are not set for the loolforkit program." << std::endl;
std::cerr << "If you are on SLES11, please set 'file_caps=1' as kernel boot option." << std::endl << std::endl;
return Application::EXIT_SOFTWARE;
}
// Initialize LoKit
if (!globalPreinit(loTemplate))

View file

@ -2597,7 +2597,7 @@ int LOOLWSD::innerMain()
{
const auto msg = "Failed to fork child processes.";
LOG_FTL(msg);
std::cerr << msg << std::endl;
std::cerr << "FATAL: " << msg << std::endl;
throw std::runtime_error(msg);
}