Skip to content
Snippets Groups Projects
Select Git revision
  • 41fb9e5b9470970188181aba0e9bebce2f9c3b0b
  • master default protected
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • fix-missing-init
  • add-power-hardware-apply
  • L2SS-2129-Add-Subrack-Routine
  • Also-listen-internal-to-rpc
  • fix-build-dind
  • L2SS-2153--Improve-Error-Handling
  • L2SS-2153-Add-Grpc-Gateway-support
  • L2SS-1970-apsct-lol
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
  • v0.52.1.1 protected
  • v0.52.1 protected
  • v0.52.1-rc1 protected
  • v0.51.9-6 protected
  • v0.51.9-5 protected
41 results

test_lofar_device.py

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);
    }