본문 바로가기
자질구레

[Linux] "Warning: The unit file, source configuration file or drop-ins of XXX.service changed on disk. Run 'systemctl daemon-reload' to reload units."

by jonnwon 2025. 1. 30.
728x90
반응형

 

궁금해서 찾아보았다.

 

 

"Warning: The unit file, source configuration file or drop-ins of containerd.service changed on disk. Run 'systemctl daemon-reload' to reload units."

 

 

⚠️ 의미

containerd.servicesystemd 유닛 파일이나 구성 파일이 변경되었음.

하지만 systemd가 이를 인식하지 못하고 있음.

따라서 systemd의 설정을 다시 로드해야 함.

 

 

🔧 해결 방법

변경된 systemd 설정을 반영하려면 아래 명령어를 실행하면 됨

sudo systemctl daemon-reload

 

이후 서비스를 다시 시작할 수도 있음

sudo systemctl restart containerd

 

 

 

 

🔍 왜 이런 일이 발생하는가?

 

이 경고는 보통 다음과 같은 경우에 발생함:

1. 유닛 파일 수정 (/usr/lib/systemd/system/containerd.service)

ExecStart, Environment 등의 설정을 변경했을 때.

예: ExecStart=/usr/bin/containerd 옵션 수정.

 

2. 환경 변수 또는 설정 파일 변경

/etc/containerd/config.toml 또는 /etc/default/containerd를 수정했을 때.

하지만 systemd가 이를 감지하지 못하고 있음.

 

3. Drop-in 파일 변경 (/etc/systemd/system/containerd.service.d/)

추가적인 설정을 위해 containerd.service.d/override.conf 같은 Drop-in 유닛 파일을 사용했을 때.

 

4. 패키지 업데이트

containerd 패키지가 업데이트되면서 새로운 systemd 설정이 적용되지 않은 경우.

728x90