From 11ff435f03e8b53899e8197e37d2193c4b91cd95 Mon Sep 17 00:00:00 2001 From: Anastasia Karachaliou <anastasia.karachaliou@cern.ch> Date: Mon, 30 Oct 2017 18:16:47 +0100 Subject: [PATCH] Added configuration files for smc and rmcd in CTA rpms --- cta.spec.in | 3 +- mediachanger/castorrmc/rmc/CMakeLists.txt | 6 +-- .../castorrmc/rmc/cta-rmcd.conf.example | 38 ++++++++++++++++++ .../castorrmc/rmc/cta-smc.conf.example | 40 +++++++++++++++++++ 4 files changed, 82 insertions(+), 5 deletions(-) create mode 100644 mediachanger/castorrmc/rmc/cta-rmcd.conf.example create mode 100644 mediachanger/castorrmc/rmc/cta-smc.conf.example diff --git a/cta.spec.in b/cta.spec.in index 4419800c0a..cac3b09315 100644 --- a/cta.spec.in +++ b/cta.spec.in @@ -301,7 +301,8 @@ Tools to faciliate working with rmc and smc in cta %attr(0755,root,root) %{_bindir}/smc %attr(0644,root,root) %doc /usr/share/man/man1/rmcd.1cta.gz %attr(0644,root,root) %doc /usr/share/man/man1/smc.1cta.gz -#%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/rmcd.conf.example +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-rmcd.conf.example +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-smc.conf.example #%package -n cta-smc #Summary: Tools to faciliate working with smc in cta diff --git a/mediachanger/castorrmc/rmc/CMakeLists.txt b/mediachanger/castorrmc/rmc/CMakeLists.txt index 6d1ceb8215..35ce5148e2 100644 --- a/mediachanger/castorrmc/rmc/CMakeLists.txt +++ b/mediachanger/castorrmc/rmc/CMakeLists.txt @@ -30,10 +30,8 @@ set (RMCD_SRC_FILES ) add_executable(rmcd ${RMCD_SRC_FILES}) target_link_libraries(rmcd ctarmccommon) - -#install (FILES rmcd.conf.example - # DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta - # PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) +install (FILES cta-rmcd.conf.example DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta) +install (FILES cta-smc.conf.example DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta) install (TARGETS rmcd DESTINATION /usr/bin) install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/rmcd.1cta DESTINATION /usr/share/man/man1) diff --git a/mediachanger/castorrmc/rmc/cta-rmcd.conf.example b/mediachanger/castorrmc/rmc/cta-rmcd.conf.example new file mode 100644 index 0000000000..e97d8b4096 --- /dev/null +++ b/mediachanger/castorrmc/rmc/cta-rmcd.conf.example @@ -0,0 +1,38 @@ +# The CERN Tape Archive (CTA) project +# Copyright (C) 2015 CERN +# +# 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 3 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, see <http://www.gnu.org/licenses/>. + +################################################################################ +# +# CTA Sample Configuration File +# +################################################################################ + +# The log mask. Logs with a level lower than this value will be masked. +# Possible values are: +# EMERG +# ALERT +# CRIT +# ERR +# WARNING +# NOTICE +# INFO +# DEBUG +# USERERR +# +# Please note that the USERERR log level is equivalent to NOTICE because it is +# a convention of CTA to use log level NOTICE to label user errors. +# +# taped LogMask INFO diff --git a/mediachanger/castorrmc/rmc/cta-smc.conf.example b/mediachanger/castorrmc/rmc/cta-smc.conf.example new file mode 100644 index 0000000000..0d12e2d336 --- /dev/null +++ b/mediachanger/castorrmc/rmc/cta-smc.conf.example @@ -0,0 +1,40 @@ +# The CERN Tape Archive (CTA) project +# Copyright (C) 2015 CERN +# +# 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 3 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, see <http://www.gnu.org/licenses/>. + +################################################################################ +# +# CTA Sample Configuration File +# +################################################################################ + +# The log mask. Logs with a level lower than this value will be masked. +# Possible values are: +# EMERG +# ALERT +# CRIT +# ERR +# WARNING +# NOTICE +# INFO +# DEBUG +# USERERR +# +# Please note that the USERERR log level is equivalent to NOTICE because it is +# a convention of CTA to use log level NOTICE to label user errors. +# +# taped LogMask INFO + + -- GitLab