JavaSE

Сервис для linux

Добавляем в /etc/systemd/system/[daemon].service

[Unit]
Description=Java Daemon

[Service]
User=user
Group=user
ExecStart= /usr/bin/java -jar -Dspring.profiles.active=prod /usr/local/bin/parking.jar

[Install]
WantedBy=multi-user.target

Обновляем systemd

systemctl daemon-reload

Возможные методы

systemctl enable [daemon]
systemctl disable [daemon]
systemctl status [daemon]
systemctl start [daemon]
systemctl stop [daemon]
systemctl reload [daemon]