Knowledgebase: MyJDownloader
MyJDownloader - systemd autostart script
Posted by Jiaz, Last modified by Jiaz on 20 May 2020 05:05 PM

Create the file /etc/systemd/system/jdownloader.service with following content:

[Unit]
Description=JDownloader
Wants=network.target
After=network.target

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

[Install]
WantedBy=multi-user.target


sudo systemctl daemon-reload

sudo systemctl start jdownloader.service

sudo systemctl enable jdownloader.service

Thanks to Andreas

(0 vote(s))
Helpful
Not helpful