summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
-rw-r--r--traccar.service16
3 files changed, 4 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b026ed84c5a..a6c29573d06 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,9 +8,7 @@ pkgbase = traccar-bin
license = APACHE
depends = java-runtime
source = https://github.com/tananaev/traccar/releases/download/v4.6/traccar-linux-64-4.6.zip
- source = traccar.service
md5sums = c1a640673052a99aff4956b90a23ab47
- md5sums = 3e230b1b98fb5d0ae71ee08ab96a7c92
pkgname = traccar-bin
diff --git a/PKGBUILD b/PKGBUILD
index 608b15ee2c3..34ba554700d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,17 +9,14 @@ 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-64-$pkgver.zip"
-"${pkgname%%-*}.service")
+source=("https://github.com/tananaev/traccar/releases/download/v${pkgver}/${pkgname%%-*}-linux-64-$pkgver.zip")
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"
- chmod 755 -R $pkgdir/opt/*
+ mv "${pkgdir}/opt/traccar/traccar.service" "${pkgdir}/usr/lib/systemd/system/"
+ chmod 755 -R $pkgdir/opt
}
-md5sums=('c1a640673052a99aff4956b90a23ab47'
-'3e230b1b98fb5d0ae71ee08ab96a7c92')
+md5sums=('c1a640673052a99aff4956b90a23ab47')
diff --git a/traccar.service b/traccar.service
deleted file mode 100644
index 505615fdbae..00000000000
--- a/traccar.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[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