add script to automatically start the listener at boot time

master
Raphaël Vinot 2015-05-01 01:27:30 +02:00
parent c718700bfc
commit 770765b1bd
1 changed files with 15 additions and 0 deletions

15
v2/autostart.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
set -x
SESSIONNAME="syndilight"
tmux new-session -s $SESSIONNAME -n forwarder -d
tmux send-keys -t $SESSIONNAME ". /home/pi/gits/syndilights/v2/virtenv/bin/activate" C-m
tmux send-keys -t $SESSIONNAME "/home/pi/gits/syndilights/v2/backend/forwarding/forward.py " C-m
sleep 15
tmux split-window -t $SESSIONNAME -h
tmux send-keys -t $SESSIONNAME ". /home/pi/gits/syndilights/v2/virtenv/bin/activate" C-m
tmux send-keys -t $SESSIONNAME "/home/pi/gits/syndilights/v2/backend/forwarding/receiver.py " C-m