Linux
Create a systemd service:
[Unit]
Description=Joal as Service
After=sys-devices-virtual-net-tun0.device
Wants=sys-devices-virtual-net-tun0.device
[Service]
User=joal
Group=joal
WorkingDirectory=/opt/joal
ExecStart=/opt/joal/StartingJoal.sh
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
and in the /opt/joal/StartingJoal.sh
file (which is used to start joal) :
/usr/bin/java -jar /opt/joal/jack-of-all-trades-2.X.X.jar --joal-conf="XXXXXXXXXX" --spring.main.web-environment=true --server.port=XXXX --joal.ui.path.prefix="XXXXXX" --joal.ui.secret-token="XXXXXXXXXX"
Don't forget to replace every X with proper values.