diff --git a/cta.spec.in b/cta.spec.in index 527ee7e8ae777a281bd13ff9a84040b5b479c173..d74cf6a39233ef82b7368e7bf99c1d0b3b8b3930 100644 --- a/cta.spec.in +++ b/cta.spec.in @@ -159,6 +159,7 @@ The xroot plugin %{_libdir}/libXrdSsiCta.so* %attr(0644,root,root) %config(noreplace) /etc/logrotate.d/cta-frontend %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/cta-frontend-xrootd.conf +%attr(0644,root,root) %config(noreplace) /etc/sysconfig/cta-frontend %attr(0644,cta,tape) /etc/systemd/system/cta-frontend.service #Frontend installs libraries so we need ldconfig. diff --git a/xroot_plugins/CMakeLists.txt b/xroot_plugins/CMakeLists.txt index 97449e20510e995f905a9c1eb881bda6bb8fda8f..3d956ce7c9dc014cfb6df2304b102b00b50ec28f 100644 --- a/xroot_plugins/CMakeLists.txt +++ b/xroot_plugins/CMakeLists.txt @@ -48,4 +48,5 @@ endif (OCCI_SUPPORT) install(TARGETS XrdSsiCta DESTINATION usr/${CMAKE_INSTALL_LIBDIR}) install(FILES cta-frontend-xrootd.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cta) install(FILES cta-frontend.logrotate DESTINATION /etc/logrotate.d RENAME cta-frontend) +install(FILES cta-frontend.sysconfig DESTINATION /etc/sysconfig RENAME cta-frontend) install(FILES cta-frontend.service DESTINATION /etc/systemd/system) diff --git a/xroot_plugins/cta-frontend.service b/xroot_plugins/cta-frontend.service index 5cec9f5024f3b9aaaaa56cb107fe827adb7b8900..b4cb19cab86c24f06454d95e0776f819b64fae2a 100644 --- a/xroot_plugins/cta-frontend.service +++ b/xroot_plugins/cta-frontend.service @@ -3,6 +3,7 @@ Description=CTA frontend plugin for the XRoot deamon After=network-online.target [Service] +EnvironmentFile=-/etc/sysconfig/cta-frontend ExecStart=/usr/bin/xrootd -l /var/log/cta-frontend-xrootd.log -c /etc/cta/cta-frontend-xrootd.conf -k fifo -n cta User=cta Type=simple diff --git a/xroot_plugins/cta-frontend.sysconfig b/xroot_plugins/cta-frontend.sysconfig new file mode 100644 index 0000000000000000000000000000000000000000..2898bc48fa366fa0da2a943468bdded865e36d83 --- /dev/null +++ b/xroot_plugins/cta-frontend.sysconfig @@ -0,0 +1,2 @@ +# This is to improve SSI parrallel event treatment +XRD_PARALLELEVTLOOP=10