
이것은 내 bot1.conf
파일 입니다 /etc/init
.
start on startup
task
exec /bot/start.sh
이것은 start.sh
:
#! while true; do nohup java -jar /bot/bot.jar & && break; done
서버가 다시 시작되면 자동으로 시작되지 않습니다 bot.jar
.
예외가 발생하거나 시스템이 다시 시작될 때 이 Java 애플리케이션이 시작되기를 원합니다.