summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolodoc2016-01-24 19:03:49 +0100
committerHolodoc2016-01-24 19:03:49 +0100
commit5b2e6ebe3613a8fc3a60e6b2d942a89c27066717 (patch)
treea381ce5c73430044c7d0670dd40a8b7803c91cd6
parent589acb6cf1de9fa966f9391d434a4c74f3077490 (diff)
downloadaur-5b2e6ebe3613a8fc3a60e6b2d942a89c27066717.tar.gz
Redirecting Log to file
-rw-r--r--.SRCINFO4
-rw-r--r--JDownloaderHeadless9
-rw-r--r--PKGBUILD4
3 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4d6c9250eca3..1dc49e888b3e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Fri Dec 18 11:02:17 UTC 2015
+# Sun Jan 24 17:56:52 UTC 2016
pkgbase = jdownloader2
pkgdesc = Download manager, written in Java, for one-click hosting sites like Rapidshare and Megaupload. Uses its own updater.
pkgver = latest
- pkgrel = 7
+ pkgrel = 8
url = http://jdownloader.org/
install = jdownloader.install
arch = any
diff --git a/JDownloaderHeadless b/JDownloaderHeadless
index 9f0fa031186c..8186cc61af6c 100644
--- a/JDownloaderHeadless
+++ b/JDownloaderHeadless
@@ -20,4 +20,11 @@ if [ ! -f "JDownloader.jar" ]; then
wget -O JDownloader.jar http://installer.jdownloader.org/JDownloader.jar
fi
-exec java -Djava.awt.headless=true -jar JDownloader.jar -norestart "$@"
+LOGFILE="JDownloader.service.log"
+
+if [ -f "$LOGFILE" ]; then
+ # Save the old Logfile (this automatically removes the n-2 one, if there is one)
+ mv "${LOGFILE}" "${LOGFILE}.old"
+fi
+echo "All output is redirected to \"$(readlink -f "${LOGFILE}")\""
+exec java -Djava.awt.headless=true -jar JDownloader.jar -norestart "$@" >"${LOGFILE}" 2>&1
diff --git a/PKGBUILD b/PKGBUILD
index 2683f62e372e..3893ca9ffae0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: fcpt, Marcel Dopita <m@rcel.cz>, Holodoc
pkgname=jdownloader2
pkgver=latest
-pkgrel=7
+pkgrel=8
pkgdesc='Download manager, written in Java, for one-click hosting sites like Rapidshare and Megaupload. Uses its own updater.'
arch=('any')
conflicts=('jdownloader')
@@ -32,7 +32,7 @@ source=('JDownloader'
'jdownloader.service' )
sha256sums=('a396cdb10aaa7c67820b2e7dfc9207557f28397d889a81fd8e90694aa3e4ffc6'
'901e1c17b9fe0cb958c1bf43b711fde3a894fe8d3d193a07f094b5ded6b572f0'
- '5bdb4044847ef0c71ad1b1cabee9b92b346857763486d499a4a3b4b6f2136659'
+ '34a8885e657dce4cde1c9d1036ea1221e6422597f8965f3ef9d5952e3dc9f71e'
'c4301592694b3273ed44814debcc03bf1e4fc85882954f5c03e55508c53c4491'
'44a499df472328f9034f9972aad02df0fc27a45ef1bb3e9314576d2fa9fdfcbe'
'92cfbe543ee1f9e094347dbd9c0c6a59bd52974145f00dbece8ed0da9a828bfa'