aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup/other/traccar.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup/other/traccar.service b/setup/other/traccar.service
new file mode 100644
index 000000000..4b7404653
--- /dev/null
+++ b/setup/other/traccar.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=traccar
+After=network.target
+
+[Service]
+Type=simple
+WorkingDirectory=/opt/traccar
+ExecStart=/bin/sh -c "exec java -jar tracker-server.jar conf/traccar.xml"
+SyslogIdentifier=traccar
+
+[Install]
+WantedBy=multi-user.target