Skip to content
Snippets Groups Projects
Commit 43ea5d26 authored by Felix de las Pozas's avatar Felix de las Pozas
Browse files

Add bash script to launch both applications from docker.

parent 05c265da
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
chmod -R -f 777 /tmp
chmod -R -f 777 /etc/avahi/
mkdir -p /var/run/avahi-daemon
chmod -R -f 777 /var/run/avahi-daemon/
echo '*' > /etc/mdns.allow
service dbus start > /dev/null 2>&1
avahi-daemon --daemonize --no-drop-root --no-rlimits
sleep 1
/usr/bin/visimpl $@
......@@ -12,4 +12,4 @@ else
avahi-daemon --daemonize --no-drop-root --no-rlimits
sleep 1
fi
/usr/bin/stackviz
/usr/bin/stackviz $@
#!/bin/bash
chmod -R -f 777 /tmp
chmod -R -f 777 /etc/avahi/
mkdir -p /var/run/avahi-daemon
chmod -R -f 777 /var/run/avahi-daemon/
echo '*' > /etc/mdns.allow
service dbus start > /dev/null 2>&1
avahi-daemon --daemonize --no-drop-root --no-rlimits
sleep 1
/usr/bin/visimpl $@
for var in "$@"
do
if [[ $var = "--testFile" ]]
then
echo "Aborted: --testFile parameter only valid for SimPart, unable to launch both SimPart and StackViz with those arguments."
exit 1
fi
done
if pgrep -x "avahi-daemon" > /dev/null 2>&1
then
sleep 1
else
chmod -R -f 777 /tmp
chmod -R -f 777 /etc/avahi/
mkdir -p /var/run/avahi-daemon
chmod -R -f 777 /var/run/avahi-daemon/
echo '*' > /etc/mdns.allow
service dbus start > /dev/null 2>&1
avahi-daemon --daemonize --no-drop-root --no-rlimits
sleep 1
fi
/usr/bin/visimpl $@ &
/usr/bin/stackviz $@
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment