00001 #include "Service.h"
00002 #include "Sct/IpcObjectException.h"
00003
00004 using namespace SctArchivingService;
00005
00006 int main(int argc, char** argv) {
00007 Sct::setExceptionHandlers(argv[0]);
00008
00009 bool multiThreaded = false;
00010 IPCCore::init(multiThreaded);
00011
00012 try {
00013
00014 ArchivingService arch;
00015 if (!arch.publish()) {
00016 throw Sct::IpcObjectException("Failed to publish ArchivingService", __FILE__, __LINE__);
00017 }
00018
00019 arch.run();
00020 } catch (Sct::Throwable& e){
00021 e.sendToMrs(MRS_FATAL);
00022 std::terminate();
00023 }
00024 }