Knowledgebase: MyJDownloader
Headless JD - systemd autostart script
Posted by Jiaz, Last modified by pspzockerscene psp on 01 July 2020 03:47 PM

How to autostart a headless JD installation

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

(3 vote(s))
Helpful
Not helpful