Adds Webserver service
This commit is contained in:
2
run.py
2
run.py
@@ -1,5 +1,5 @@
|
|||||||
from app import app
|
from app import app
|
||||||
import ssl
|
# import ssl
|
||||||
|
|
||||||
# context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLSv1_2)
|
# context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLSv1_2)
|
||||||
# context.load_cert_chain('/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.crt', '/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.key')
|
# context.load_cert_chain('/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.crt', '/Users/patrickjmcd/Henry_Pump/tagserver/web_db/flask/app/hplumberjack.key')
|
||||||
|
|||||||
9
webserver.service
Normal file
9
webserver.service
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Datalogger Web Server
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/root/www/start.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user