From 59f1a955c4b27af8fb38e8570a1928addf94fa11 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 9 May 2012 09:38:07 +0000
Subject: [PATCH] Task #2669: Create /opt/lofar/log/latest symlink again, this
 time pointing to the directory with the latest parset

---
 RTCP/Run/src/startBGL.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/RTCP/Run/src/startBGL.sh b/RTCP/Run/src/startBGL.sh
index 0cd7b025289..90e4cc3e850 100755
--- a/RTCP/Run/src/startBGL.sh
+++ b/RTCP/Run/src/startBGL.sh
@@ -26,6 +26,9 @@ source /opt/lofar/bin/locations.sh
 mkdir -p `dirname $STORAGE_PARSET` &&
 cp $IONPROC_PARSET $STORAGE_PARSET &&
 
+# Make the /opt/lofar/log/latest symlink
+(ln -sfT `dirname $STORAGE_PARSET` /opt/lofar/log/latest || true) &&
+
 # Inject the parset into the correlator
 /opt/lofar/bin/commandOLAP.py -P $PARTITION parset $IONPROC_PARSET
 
-- 
GitLab