Ubuntu 18.04에서 Java jar를 Service로 실행하기
Mon, Jan 1, 0001
Step1. 서비스 파일 생성 sudo vi /etc/systemd/system/smartfactory.service smartfactory.service
[Unit] Description=Smart Factory client After=syslog.target network.target mysql.service [Service] Type=simple User=devplayg Group=devplayg WorkingDirectory=/home/devplayg/client ExecStart=/usr/local/jdk/bin/java -Xms128m -Xmx256m -jar smartfactory.jar Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.
...
➦