Skip to content
Snippets Groups Projects
Select Git revision
  • ab582addf023afa11e99609ddcaf255eb9fa8b23
  • master default protected
  • fix_sas_id_in_filename
  • releases/v0.5.17.tim_survey protected
  • compress_tim_survey_no_metadata_compression
  • v0.5.x
  • juelich_0_5_18
  • releases/v0.6.0.tim_survey protected
  • compress_tim_survey
  • releases/v0.5.18 protected
  • expose_elevation_for_parset
  • releases/v0.5.17 protected
  • releases/v0.6.0 protected
  • releases/v0.5.19 protected
  • releases/v0.5.16 protected
  • releases/v0.5.15 protected
  • nico_testing_juelich
  • nightly_build_test
  • releases/v0.5.14 protected
  • releases/v0.5.13 protected
  • releases/v0.5.12 protected
  • v0.5.17.tim_survey
  • v0.6.0.tim_survey
  • v0.5.18
  • v0.5.17
  • v0.6.0
  • v0.5.16
  • v0.5.15
  • v0.5.14
  • v0.5.13
  • v0.5.12
  • v0.5.11
  • v0.5.10
  • v0.5.9
  • v0.5.8
  • v0.5.7
  • v0.5.6
  • v0.5.5
  • v0.5.4
  • v0.5.3
  • v0.5.2
41 results

extract_sip_meta.cwl

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    KeyValueLoggerMain.cc 1.62 KiB
    //#  KeyValueLoggerMain.cc
    //#
    //#  Copyright (C) 2008
    //#  ASTRON (Netherlands Foundation for Research in Astronomy)
    //#  P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
    //#
    //#  This program is free software; you can redistribute it and/or modify
    //#  it under the terms of the GNU General Public License as published by
    //#  the Free Software Foundation; either version 2 of the License, or
    //#  (at your option) any later version.
    //#
    //#  This program is distributed in the hope that it will be useful,
    //#  but WITHOUT ANY WARRANTY; without even the implied warranty of
    //#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    //#  GNU General Public License for more details.
    //#
    //#  You should have received a copy of the GNU General Public License
    //#  along with this program; if not, write to the Free Software
    //#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    //#
    //#  $Id$
    
    #include <lofar_config.h>
    
    #include <GCF/TM/GCF_Control.h>
    #include <Common/Exception.h>
    #include "KeyValueLogger.h"
    
    using namespace LOFAR;
    using namespace LOFAR::GCF::TM;
    using namespace LOFAR::GCF::RTDBDaemons;
    
    // Use a terminate handler that can produce a backtrace.
    Exception::TerminateHandler t(Exception::terminate);
    
    int main(int argc, char *argv[])
    {
    	try {
    		GCFScheduler::instance()->init(argc, argv, "KeyValueLogger");
    		LOG_INFO("MACProcessScope: LOFAR_PermSW_Daemons_KVLogger");
    
    		KeyValueLogger kvl("KeyValueLogger"); 
    		kvl.start(); // make initial transition
    
    		GCFScheduler::instance()->run();
    	} catch( Exception &ex ) {
    		LOG_FATAL_STR("Caught exception: " << ex);
    		return 1;
    	}
    
    	return (0);
    }