From 1a4341a69e04a8c93bdd250ed10bcbd4c6f08b1e Mon Sep 17 00:00:00 2001
From: Giuseppe Lo Presti <itglp@cern.ch>
Date: Thu, 21 Mar 2013 12:06:32 +0000
Subject: [PATCH] Moved DAEMON_COREFILE_LIMIT from the sysconfig to the init
 scripts, so that it's there in all cases. Dropped sysconfig for security as
 already not supported/obsoleted.

---
 mediachanger/castorrmc/rmc/rmcd.init      | 1 +
 mediachanger/castorrmc/rmc/rmcd.sysconfig | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/mediachanger/castorrmc/rmc/rmcd.init b/mediachanger/castorrmc/rmc/rmcd.init
index ae49dbbce1..7fb82580ab 100755
--- a/mediachanger/castorrmc/rmc/rmcd.init
+++ b/mediachanger/castorrmc/rmc/rmcd.init
@@ -32,6 +32,7 @@
 
 # Variables
 prog="rmcd"
+export DAEMON_COREFILE_LIMIT="unlimited"
 RETVAL=0
 
 # Source sysconfig files
diff --git a/mediachanger/castorrmc/rmc/rmcd.sysconfig b/mediachanger/castorrmc/rmc/rmcd.sysconfig
index d26d302d35..0c725a9118 100644
--- a/mediachanger/castorrmc/rmc/rmcd.sysconfig
+++ b/mediachanger/castorrmc/rmc/rmcd.sysconfig
@@ -1,5 +1,2 @@
 # Options to pass to the rmc daemon
 #RMCD_OPTIONS=
-
-# Should we run with another limit on the core file size other than the default?
-DAEMON_COREFILE_LIMIT=unlimited
-- 
GitLab