service - Spring Boot app with embedded init.d script not starting on reboot -
spring boot has handy feature embed init.d starup script executable jar if configure maven plugin so: http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html#deployment-install
so "installing" spring boot app (executable fat jar) service in centos 6.6 using above method.
so far good. create link jar , set permissions:
sudo ln -s /path/to/myapp.jar /etc/init.d/my-service sudo chmod 0755 /etc/init.d/my-service
and can start application:
sudo service my-service start
however, want app come on startup, use chkconfig utility:
sudo chkconfig --add my-service sudo chkconfig my-service on
no errors commands, when reboot centos service not auto-start. running:
sudo service my-service status
shows:
not running
running:
chkconfig --list my-service
shows:
my-service 0:off 1:off 2:on 3:on 4:on 5:on 6:off
everything looks good, it's not starting. @ point can manually start service "sudo service my-service start" , comes up, it's not auto-starting on boot.
any ideas? thanks
problem solved. turned out path issue , fault. path application lived mounted directory not available @ boot time.
Comments
Post a Comment