View Single Post
  #2  
Old 02.10.2019, 21:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 66,134
Default

for example
/etc/systemd/system/jdownloader2.service
Quote:
[Unit]
Description=JDownloader2 Headless
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/java -Djava.awt.headless=true -jar /path/JDownloader.jar
PIDFile=/path/JDownloader.pid
RemainAfterExit=yes
User=jdUser
Group=jdGroup

[Install]
WantedBy=multi-user.target
replace jdUser/jdGroup matching to /path
replace /path with JDownloader path
__________________
JD-Dev & Server-Admin
Reply With Quote