Commit fcdc053d authored by Steven Murray's avatar Steven Murray
Browse files

tapeserverd now aborts if TPCONFIG is empty

parent d36f4e8d
......@@ -193,6 +193,12 @@ void castor::tape::tapeserver::daemon::TapeDaemon::exceptionThrowingMain(
logStartOfDaemon(argc, argv);
parseCommandLine(argc, argv);
if(m_driveConfigs.empty()) {
castor::exception::Exception ex;
ex.getMessage() << "/etc/castor/TPCONFIG is empty";
throw ex;
}
// Process must be able to change user now and should be permitted to perform
// raw IO in the future
setProcessCapabilities("cap_setgid,cap_setuid+ep cap_sys_rawio+p");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment