JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 09.01.2019, 18:33
Eiermann Eiermann is offline
Junior Loader
 
Join Date: Feb 2018
Posts: 10
Default Autostart on Raspberry Pi

Hi,

i use the jdownloader 2 beta on my raspberry pi headless. i have created a service unit so auto start jdownloader with systemd, but it (mostly) doesn't work. The service unit is "load" but "inactive (dead)". sometimes it works. This is the output of systemd status is:
Code:
● jdownloader.service - JDownloader
   Loaded: loaded (/etc/systemd/system/jdownloader.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-01-09 17:24:21 CET; 1min 18s ago
  Process: 406 ExecStart=/usr/bin/java -jar /home/pi/bin/jdownloader/JDownloader.jar (code=exited, status=0/SUCCESS)
 Main PID: 406 (code=exited, status=0/SUCCESS)

Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [5/7|Priority: 0]ShutdownController: start item->ShutdownEvent: ProcessDelayedWrites num=0
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [5/7|Priority: 0]ShutdownController: item ended after->1
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [Done:5/7]
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [6/7|Priority: -2147483648]ShutdownController: start item-> Priority: -2147483648
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [6/7|Priority: -2147483648]ShutdownController: item ended after->304
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [Done:6/7]
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [7/7|Priority: -2147483648]ShutdownController: start item->ShutdownEventWrapper Thread[Thread-0,5,main] - jav
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [7/7|Priority: -2147483648]ShutdownController: item ended after->2
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> [Done:7/7]
Jan 09 17:24:21 raspberrypi java[406]: 7|org.appwork.shutdown.ShutdownController.log 09.01.19 17:24:21 - INFO [ org.appwork.shutdown.ShutdownController(log) ] -> Shutdown Hooks Finished
~
~
This is the service unit

Code:
[Unit]
Description=JDownloader
Wants=multi-user.target
Wants=network-online.target
After=multi-user.target
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/java -jar /home/pi/bin/jdownloader/JDownloader.jar
User=pi

[Install]
WantedBy=multi-user.target
I also tried it without the 2 'multi-user.target' and with 'network-target' instead of 'network-online.target'. All the same.

Eiermann
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 11:14.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.