video link https://youtu.be/2pxFAQlMCoU
You can find running linux service under path /etc/systemd/system
cd /etc/systemd/system
Create a file named [servicename.service] and add the following
[Unit]
Description=reposilite service for maven artifact
After=network-online.target
[Service]
User=root
Group=root
WorkingDirectory=/opt/reposilite
ExecStart=/usr/bin/java -Xmx32M -Dreposilite.port=8082 -jar /opt/reposilite/reposilite-3.0.3-all.jar
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start [your_new_service].service
sudo systemctl reposilite.service
sudo systemctl enable reposilite.service
sudo systemctl disable reposilite.service
[Unit]
Description=wildfly service for vdoxx
After=network-online.target
[Service]
User=root
Group=root
WorkingDirectory=/opt/vdoxx
ExecStart=/usr/bin/sh /opt/vdoxx/jboss/bin/standalone.sh
Restart=always
[Install]
WantedBy=multi-user.target