Browse Source

added screenrc used for service start

pull/228/head
Igor Chubin 8 years ago
parent
commit
0ee1554cbf
2 changed files with 9 additions and 0 deletions
  1. +2
    -0
      share/screenrc
  2. +7
    -0
      share/scripts/start-screen.sh

+ 2
- 0
share/screenrc 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
- 0
share/scripts/start-screen.sh 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"

Loading…
Cancel
Save