Code/Web
리눅스 서비스 자동시작 관련 설정
codens
2020. 6. 21. 21:51
- linux (ubuntu) auto start service
- 서비스 자동시작 설정
sudo update-rc.d [service] defaults
sudo update-rc.d [service] enable
//------------------------------------
-
서비스 자동시작 중지 시키기
-
systemd 사용시
sudo systemctl disable [service]
-
systemd 미 사용시
sudo update-rc.d -f [service] remove
-
//------------------------
-
서비스 상태 보기
sudo service --status-all
//--------------------------
-
자동 시작 여부 보기
-
init scripts
sudo ls /etc/init.d/
-
runlevel symlinks
sudo ls /etc/rc*.d/
-
- SystemD 사용시 (가장 자세한 정보)
sudo systemctl list-unit-files --type=service
//--------------------
// 참고
askubuntu.com/questions/218/command-to-list-services-that-start-on-startup
반응형