Changeset - fc3d81748eb3
[Not reviewed]
0 2 0
vitalyster - 9 years ago 2016-01-21 13:04:13
vitalyster@gmail.com
manager: install sample logging config
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spectrum/src/CMakeLists.txt
Show inline comments
 
@@ -46,7 +46,11 @@ INSTALL(FILES
 

	
 
INSTALL(FILES
 
	logging.cfg
 
	DESTINATION /etc/spectrum2
 
	)
 

	
 
INSTALL(FILES
 
	manager-logging.cfg
 
	DESTINATION /etc/spectrum2
 
	)
 

	
spectrum_manager/src/managerconfig.cpp
Show inline comments
 
@@ -39,13 +39,13 @@ bool ManagerConfig::load(const std::string &configfile, boost::program_options::
 
		("database.database", value<std::string>()->default_value("/var/lib/spectrum2/$jid/database.sql"), "Database used to store data")
 
		("database.server", value<std::string>()->default_value("localhost"), "Database server.")
 
		("database.user", value<std::string>()->default_value(""), "Database user.")
 
		("database.password", value<std::string>()->default_value(""), "Database Password.")
 
		("database.port", value<int>()->default_value(0), "Database port.")
 
		("database.prefix", value<std::string>()->default_value(""), "Prefix of tables in database")
 
		("logging.config", value<std::string>()->default_value("/etc/spectrum2/logging.cfg"), "Logging configuration file")
 
		("logging.config", value<std::string>()->default_value("/etc/spectrum2/manager_logging.cfg"), "Logging configuration file")
 
	;
 

	
 
	store(parse_config_file(ifs, opts), m_variables);
 
	notify(m_variables);
 

	
 
	m_file = configfile;
0 comments (0 inline, 0 general)