diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:29:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:29:01 +1200 |
commit | 2fb444df86d56246a8b5cee515eb91490c8dee05 (patch) | |
tree | ca1796dfe137184b6381fefeba0f7de4e26d7dd7 /setup/setup.sh | |
parent | 363ca19cb2ac1b56e3db8f38c89cf61c73806462 (diff) | |
download | trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.tar.gz trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.tar.bz2 trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.zip |
More work on service implementation
Diffstat (limited to 'setup/setup.sh')
-rwxr-xr-x | setup/setup.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/setup/setup.sh b/setup/setup.sh index 51a139dd1..b27fcbe1c 100755 --- a/setup/setup.sh +++ b/setup/setup.sh @@ -9,8 +9,13 @@ then rm -r ../out rm /opt/traccar/setup.sh chmod -R go+rX /opt/traccar - cd /opt/traccar/bin/ - /opt/traccar/bin/installDaemon.sh + + mv /opt/traccar/traccar.service /etc/systemd/system + chmod 664 /etc/systemd/system/traccar.service + + systemctl daemon-reload + systemctl enable traccar.service + systemctl start traccar.service else echo 'Java 7 or higher is required' fi |