Skip to content
Snippets Groups Projects
Commit 8af23e5c authored by Thomas Jürges's avatar Thomas Jürges
Browse files

Task #11173: Added logging to logfiles in the Docker image startup.sh script.

parent 6d47e263
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Create the log directory.
mkdir -p /opt/LOFAR/var/log
echo 'Starting Qpid...' &&
qpidd &
qpidd 2>&1 > /opt/LOFAR/var/log/qpid.log &
sleep 2;
echo 'Setting up queues...' &&
qpid-config add exchange topic devel.lofar.trigger.command &&
qpid-config add exchange topic devel.lofar.trigger.notification &&
qpid-config add exchange topic devel.lofar.trigger.notification &&
qpid-config add exchange topic devel.lofar.ra.command &&
qpid-config add exchange topic devel.lofar.spec.command &&
qpid-config add exchange topic devel.lofar.spec.command &&
qpid-config add queue mom.importxml &&
sleep 2;
......@@ -17,19 +20,19 @@ echo 'Init LOFAR env...';
sleep 2;
echo 'Starting LOFAR services...' &&
specificationservice &
specificationvalidationservice &
specificationtranslationservice &
triggerservice &
specificationservice 2>&1 > /opt/LOFAR/var/log/specificationservice.log &
specificationvalidationservice 2>&1 > /opt/LOFAR/var/log/specificationvalidationservice.log &
specificationtranslationservice 2>&1 > /opt/LOFAR/var/log/specificationtranslationservice.log &
triggerservice 2>&1 > /opt/LOFAR/var/log/triggerservice.log &
echo 'Starting Postgres...' &&
runuser -l postgres -c '/usr/pgsql-9.6/bin/pg_ctl -D /var/lib/pgsql/9.6/data/ start' &&
runuser -l postgres -c '/usr/pgsql-9.6/bin/pg_ctl -D /var/lib/pgsql/9.6/data/ start' &&
echo 'Starting Mysql...' &&
runuser -l mysql -c 'mysqld_safe' &
sleep 5;
cd; momqueryservice -C MoM &
cd; momqueryservice -C MoM 2>&1 > /opt/LOFAR/var/log/momqueryservice.log &
postfix start;
......@@ -37,5 +40,5 @@ postfix start;
echo 'Staring Apache...' &&
/usr/sbin/httpd -k restart
echo 'Have fun!' &&
echo 'Have fun!' &&
/bin/bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment