해결 방법 참고 url


https://www.cameronezell.com/failed-to-start-service-unit-service-not-found/





스프링 부트 jar 파일을 Aws에 배포하려고 


서비스 등록을 하려고 스크립트 파일을 짜서 올렸는데 


Failed to start service: Unit service not found 


계속해서 서비스 파일이 등록안되고 찾을수 없다고 에러가 떳다





원인은 이거다 


 It turns out that between the LTS versions of Ubuntu, Canonical decided that 15.04 would be the start of a transition from upstart to systemd as the default for managing boot and system service startup.


Ubuntu의 LTS 버전 사이에서 Canonical은 부팅 및 시스템 서비스 시작 관리를위한 기본값으로 15.04가 upstart에서 systemd 로의 전환의 시작이라고 결정했다.






우분투 14 에서 16으로 버전이 올라가는 과정에서 무언가가 있던게 사라진듯 싶다...



해결법


  1. sudo apt-get install upstart-sysv

  2. sudo update-initramfs -u



명령어 두번으로 15버젼에서 패치된 내용을 이렇게 적용 줄수있다 
















+ Recent posts