]> average.org Git - loctrkd.git/blobdiff - debian/gps303.wsgateway.service
WIP on websocket gateway
[loctrkd.git] / debian / gps303.wsgateway.service
diff --git a/debian/gps303.wsgateway.service b/debian/gps303.wsgateway.service
new file mode 100644 (file)
index 0000000..3072f3b
--- /dev/null
@@ -0,0 +1,17 @@
+[Unit]
+Description=GPS303 Websocket Gateway Service
+PartOf=gps303.target
+
+[Service]
+Type=simple
+EnvironmentFile=-/etc/default/gps303
+ExecStart=python3 -m gps303.wsgateway $OPTIONS
+KillSignal=INT
+Restart=on-failure
+StandardOutput=journal
+StandardError=inherit
+User=gps303
+Group=gps303
+
+[Install]
+WantedBy=gps303.target