Package Details: traccar 3.14-1

Git Clone URL: https://aur.archlinux.org/traccar.git (read-only)
Package Base: traccar
Description: Open source GPS tracking system
Upstream URL: http://www.traccar.org/
Licenses: Apache
Submitter: M0Rf30
Maintainer: M0Rf30
Last Packager: M0Rf30
Votes: 4
Popularity: 0.000039
First Submitted: 2014-02-16 17:12
Last Updated: 2017-09-08 14:56

Latest Comments

kehon commented on 2017-05-17 17:46

@M0Rf30 Looks like updating broke a few things, I did some debugging and figured out how to get this working on Arch with the help of github.

Here is a new PKGBUILD and traccar.service:

=========== PKGBUILD ==========
# Maintainer: M0Rf30

pkgname=traccar
pkgver=3.11
pkgrel=1
pkgdesc="Open source GPS tracking system"
arch=('i686' 'x86_64')
url="http://www.traccar.org/"
license=('APACHE')
depends=(java-runtime)
source=("https://github.com/tananaev/traccar/releases/download/v${pkgver}/$pkgname-linux-$pkgver.zip"
"$pkgname.service")

package() {
cd ${srcdir}
./traccar.run --noexec --target $pkgdir/opt/traccar/
install -m755 -d "${pkgdir}/usr/lib/systemd/system"
install -m644 "${srcdir}/traccar.service" "${pkgdir}/usr/lib/systemd/system/"

install -m755 -d "${pkgdir}/opt/traccar/init.d"
}

md5sums=('024bee353d3fb38008e73496c00dabe8'
'3e230b1b98fb5d0ae71ee08ab96a7c92')

=========== END PKGBUILD ==========

========== traccar.service ========
[Unit]
Description=Traccar GPS System
After=network.target

[Service]
Type=forking
WorkingDirectory=/opt/traccar
ExecStart=/usr/bin/java -Dwrapper.daemon.dir=/opt/traccar/init.d -Dwrapper.pidfile=/var/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/traccar/wrapper.jar -tx /opt/traccar/conf/wrapper.conf
ExecStop=/usr/bin/java -Dwrapper.daemon.dir=/opt/traccar/init.d -Dwrapper.pidfile=/var/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/traccar/wrapper.jar -px /opt/traccar/conf/wrapper.conf

PIDFile=/var/run/wrapper.traccar.pid
SuccessExitStatus=143
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target
========== end traccar.service ========

kehon commented on 2017-05-17 16:14

The service needs to be changed to use /opt/traccar/bin/startDaemon.sh after version 3.8

See: https://www.traccar.org/linux/

kehon commented on 2016-04-28 16:40

Please update the package build to download from the traccar website https://www.traccar.org/download/ which uses github.

justinzane commented on 2014-11-25 16:49

It would be good to make sure that a JRE is a dependency. I just installed and had to manually install a JRE on see the error from the wrapper script. Thanks for the nice package!