added screenrc used for service start

This commit is contained in:
Igor Chubin 2018-10-23 18:52:08 +02:00
parent 3e7396e7dd
commit 0ee1554cbf
2 changed files with 9 additions and 0 deletions

2
share/screenrc Normal file
View file

@ -0,0 +1,2 @@
screen -t srv.py bash -c "cd ~/wttr.in; ve/bin/python bin/srv.py; bash -i"
screen -t proxy.py bash -c "cd ~/wttr.in; ve/bin/python bin/proxy.py; bash -i"

7
share/scripts/start-screen.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
SESSION_NAME=wttr.in
SCREENRC_PATH=$(dirname $(dirname "$0"))/screenrc
screen -dmS "$SESSION_NAME" -c "$SCREENRC_PATH"