Skip to content
Snippets Groups Projects
Commit 20326cce authored by Julien Leduc's avatar Julien Leduc
Browse files

Removing cta frontend and xrootd logs from stdout of the pod as kubectl logs...

Removing cta frontend and xrootd logs from stdout of the pod as kubectl logs is broken and only displays partial logs. xrootd logs are now going in /var/log/cta-frontend-xrootd.log to be collected later in the varlog archive as artifacts.
parent e3cb82e9
Branches
Tags
No related merge requests found
......@@ -52,13 +52,15 @@ echo OK
touch /var/log/cta/cta-frontend.log
chmod a+w /var/log/cta/cta-frontend.log
tail -F /var/log/cta/cta-frontend.log &
touch /var/log/cta-frontend-xrootd.log
chmod a+w /var/log/cta-frontend-xrootd.log
echo "Generating core file in /var/log/cta directory so that those are available as artifacts"
echo '/var/log/cta/core_%e.%p' > /proc/sys/kernel/core_pattern
echo "Launching frontend"
runuser --shell='/bin/bash' --session-command='cd ~cta; xrootd -n cta -c /etc/xrootd/xrootd-cta.cfg -I v4' cta
runuser --shell='/bin/bash' --session-command='cd ~cta; xrootd -l /var/log/cta-frontend-xrootd.log -k fifo -n cta -c /etc/xrootd/xrootd-cta.cfg -I v4' cta
echo "ctafrontend died"
echo "analysing core file if any"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment