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