diff --git a/cta.spec.in b/cta.spec.in index 4419800c0a0a6b30185614f527c81f3f2bec390b..cac3b09315b73cfc497e5dfd59dc49c080df3819 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 6d1ceb82154382e07bf325698e639ea4075e87b5..35ce5148e2cb9852fa2fbd27f9061482b20fe06c 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 0000000000000000000000000000000000000000..e97d8b4096ae2f3df65004ff221f7b5043042c5c --- /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 0000000000000000000000000000000000000000..0d12e2d33606d1a8323bb3656d60584bdce4f910 --- /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 + +