tadd a shell script to automatically start the necessary daemons - dmt - source code for the kunsthal art installation HTML git clone git://parazyd.org/dmt.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit fa445d4cf90a2ccff46ac9b024cfbea238c29d8a DIR parent ceba2e31663f7eb0b1a52bfa81e713d2dfbceafb HTML 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: A start.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+), 0 deletions(-) --- DIR diff --git a/start.sh b/start.sh t@@ -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