D DOFER New Member Jul 4, 2024 #1 Someone runs jRDC2 as a service on Linux, I have tried to do it and the service starts but with an error, that is, it does not work. The idea is that it is not necessary to log in for it to start. Thanks in advance.
Someone runs jRDC2 as a service on Linux, I have tried to do it and the service starts but with an error, that is, it does not work. The idea is that it is not necessary to log in for it to start. Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2024 #2 You will need to find the error message. Maybe the process starts from the wrong folder. Upvote 0
D DOFER New Member Jul 7, 2024 #3 Thank you very much, I have achieved it. I attach the commands. sudo nano /etc/systemd/system/jrdc2.service [Unit] Description=JRDC2 Service After=network.target [Service] User=root ExecStart=/usr/bin/java -jar /root/Documents/jRDC.jar SuccessExitStatus=143 TimeoutStopSec=10 Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target chmod +rx /root/Documents/jrdc2.jar sudo systemctl daemon-reload sudo systemctl start jrdc2.service sudo systemctl enable jrdc2.service sudo systemctl status jrdc2.service Upvote 0
Thank you very much, I have achieved it. I attach the commands. sudo nano /etc/systemd/system/jrdc2.service [Unit] Description=JRDC2 Service After=network.target [Service] User=root ExecStart=/usr/bin/java -jar /root/Documents/jRDC.jar SuccessExitStatus=143 TimeoutStopSec=10 Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target chmod +rx /root/Documents/jrdc2.jar sudo systemctl daemon-reload sudo systemctl start jrdc2.service sudo systemctl enable jrdc2.service sudo systemctl status jrdc2.service