adds start and stop scripts for using with Twisted

This commit is contained in:
Patrick McDonagh
2016-11-22 12:18:04 -06:00
parent 00109d4c39
commit 3759bb3d4a
2 changed files with 8 additions and 0 deletions

5
start.sh Normal file
View File

@@ -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

3
stop.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
kill $(cat /root/twistd.pid)