From 0ee1554cbffebcf3a5e37118aa84c5add72bc09e Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 23 Oct 2018 18:52:08 +0200 Subject: [PATCH] added screenrc used for service start --- share/screenrc | 2 ++ share/scripts/start-screen.sh | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 share/screenrc create mode 100755 share/scripts/start-screen.sh diff --git a/share/screenrc b/share/screenrc new file mode 100644 index 0000000..4e4167d --- /dev/null +++ b/share/screenrc @@ -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" diff --git a/share/scripts/start-screen.sh b/share/scripts/start-screen.sh new file mode 100755 index 0000000..9469de7 --- /dev/null +++ b/share/scripts/start-screen.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +SESSION_NAME=wttr.in +SCREENRC_PATH=$(dirname $(dirname "$0"))/screenrc + +screen -dmS "$SESSION_NAME" -c "$SCREENRC_PATH" +