aboutsummaryrefslogtreecommitdiff
path: root/setup/other
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-14 17:20:14 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-14 17:20:14 +1200
commit363ca19cb2ac1b56e3db8f38c89cf61c73806462 (patch)
tree0b33216033176b5364711749104fa7b732a31add /setup/other
parent5d819b2776328e914a26ae011692084e1b614e26 (diff)
downloadtraccar-server-363ca19cb2ac1b56e3db8f38c89cf61c73806462.tar.gz
traccar-server-363ca19cb2ac1b56e3db8f38c89cf61c73806462.tar.bz2
traccar-server-363ca19cb2ac1b56e3db8f38c89cf61c73806462.zip
Add Linux systemd config
Diffstat (limited to 'setup/other')
-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