Add systemd auto start and disable debug mode on projektor server

This commit is contained in:
Arti Zirk
2017-11-08 22:17:27 +02:00
parent c47c525c73
commit 67585dd2b2
3 changed files with 19 additions and 1 deletions

View File

@@ -24,4 +24,4 @@ def set_status():
if __name__ == "__main__": if __name__ == "__main__":
run(host="127.0.0.1", port=6999, debug=True) run(host="127.0.0.1", port=6999, debug=False)

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Projektori server
[Service]
ExecStart=/opt/projektor/server.py
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,9 @@
[Unit]
Description=websockify vnc proxy
[Service]
ExecStart=/usr/bin/websockify localhost:6080 localhost:5900
[Install]
WantedBy=multi-user.target