aboutsummaryrefslogtreecommitdiff
path: root/setup/traccar.service
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 21:22:46 +1200
commit1432d04a7be8397becd5c88f9e1f075861acbfdc (patch)
treefa7a4b6619ffee11a4eac9d28f5ab56d4d1fe3d0 /setup/traccar.service
parent99bf70e274fbfb03e0f65c564d7c9f5bdaf115c4 (diff)
downloadtraccar-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.gz
traccar-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.tar.bz2
traccar-server-1432d04a7be8397becd5c88f9e1f075861acbfdc.zip
Update packaging scripts
Diffstat (limited to 'setup/traccar.service')
-rw-r--r--setup/traccar.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/setup/traccar.service b/setup/traccar.service
new file mode 100644
index 000000000..5bb4249f0
--- /dev/null
+++ b/setup/traccar.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=traccar
+After=network.target
+
+[Service]
+Type=simple
+WorkingDirectory=/opt/traccar
+ExecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml
+SyslogIdentifier=traccar
+
+[Install]
+WantedBy=multi-user.target