1. 서비스를 실행 할 스크립트 작성.
- 위치 : /etc/init.d/
ex : /etc/init.d/auto_run.sh
- 자동 실행 등록을 하면 해당 스크립트가 실행되어 서비스를 띄우게 된다.
2. 권한 부여
- chmod 777 /etc/init.d/[실행 스크립트이름]
- ex : chmod 777 /etc/init.d/auto_run.sh
3. 서비스 등록
- update-rc.d [실행 스크립트 이름] defaults
ex : update-rc.d auto_run.sh defaults
defaults : runlevel 3, 5
4. 확인
- 재부팅하여 서비스 확인
출처: https://euless.tistory.com/85 [Bite the Bullet]
[우분투] 부팅시 서비스 자동실행 등록
1. 서비스를 실행 할 스크립트 작성. - 위치 : /etc/init.d/ ex : /etc/init.d/auto_run.sh - 자동 실행 등록을 하면 해당 스크립트가 실행되어 서비스를 띄우게 된다. 2. 권한 부여 - chmod 777 /etc/init.d/[실..
euless.tistory.com
'Others > Ubuntu' 카테고리의 다른 글
우분투에서 rpm 이용하기 (0) | 2021.01.14 |
---|---|
[Ubuntu] ssh 터미널 접속 설정 및 외부에서 터미널 (1) | 2020.06.23 |
sudo: setrlimit(RLIMIT_CORE): Operation not permitted (0) | 2020.06.23 |
ubuntu에서 pbcopy 쓰기 (xclip) (0) | 2019.07.28 |
우분투 FTP 서버 설치 이용방법 (0) | 2019.05.07 |