From f0bdd6850038068f7bb8b1fe1cd039ba713ce63a Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Tue, 20 Jun 2017 16:35:22 +0200
Subject: [PATCH] fixing rmcd log issue as /var/log/castor/rmcd_legacy.log was
 a named pipe and nothing was collected in artifacts.

---
 .../docker/ctafrontend/cc7/opt/run/bin/rmcd.sh                | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rmcd.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rmcd.sh
index e3e9f607b5..6c95c1dfbd 100755
--- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rmcd.sh
+++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rmcd.sh
@@ -16,9 +16,7 @@ cat /tmp/library-rc.sh
 . /tmp/library-rc.sh
 
 # to get rmcd logs to stdout
-mkfifo /var/log/castor/rmcd_legacy.log
-for ((;;)); do cat </var/log/castor/rmcd_legacy.log; done &
-disown
+tail -F /var/log/castor/rmcd_legacy.log &
 
 ln -s /dev/${LIBRARYDEVICE} /dev/smc
 /usr/bin/rmcd -f /dev/smc
-- 
GitLab