diff options
author | Holodoc | 2016-01-24 19:03:49 +0100 |
---|---|---|
committer | Holodoc | 2016-01-24 19:03:49 +0100 |
commit | 5b2e6ebe3613a8fc3a60e6b2d942a89c27066717 (patch) | |
tree | a381ce5c73430044c7d0670dd40a8b7803c91cd6 | |
parent | 589acb6cf1de9fa966f9391d434a4c74f3077490 (diff) | |
download | aur-5b2e6ebe3613a8fc3a60e6b2d942a89c27066717.tar.gz |
Redirecting Log to file
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | JDownloaderHeadless | 9 | ||||
-rw-r--r-- | PKGBUILD | 4 |
3 files changed, 12 insertions, 5 deletions
@@ -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 @@ -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' |