From 3759bb3d4a51189698edfd4b48007d0e5e29ade6 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Tue, 22 Nov 2016 12:18:04 -0600 Subject: [PATCH] adds start and stop scripts for using with Twisted --- start.sh | 5 +++++ stop.sh | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 start.sh create mode 100644 stop.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..1ad0cfd --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash +OLDDIR = $PWD +cd /root/www +twistd --pidfile=/root/twistd.pid web --https=5000 --wsgi app.app -c app/hplumberjack.crt -k app/hplumberjack.key +cd $OLDDIR diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..2255bc6 --- /dev/null +++ b/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +kill $(cat /root/twistd.pid)