B4J Question jRDC2 as a service?

DOFER

New Member
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.
 

DOFER

New Member
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…