dmt

source code for the kunsthal art installation
git clone git://parazyd.org/dmt.git
Log | Files | Refs | README | LICENSE

commit fa445d4cf90a2ccff46ac9b024cfbea238c29d8a
parent ceba2e31663f7eb0b1a52bfa81e713d2dfbceafb
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 18 Nov 2017 03:54:54 +0100

add a shell script to automatically start the necessary daemons

Diffstat:
Astart.sh | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/start.sh b/start.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# See LICENSE file for copyright and license details. +# Creates a tmux session, starting all that is needed. + +tmux start-server +tmux new-session -d -s dmt -n 'dmt' + +# Start the HTTP API daemon +tmux send-keys "cd http-api && ./http_listener.py" C-m + +# Start the MIDI handler daemon +tmux splitw -v -p 50 +tmux send-keys "cd midi-handler && ./midi_handler.py" C-m + +# Start the Asterisk log parsing daemon +tmux splitw -h -p 50 +tmux send-keys "# ssh root@10.20.30.38 'cd dmt/freepbx-glue && tail -f /var/log/asterisk/full | ./freepbx_glue.py'" C-m + +# Attach to the session +tmux attach-session -t dmt