IT 일반 공부/리눅스
1. 'init'와 'systemd'
by 건빵거늬
2021. 12. 3.
1. 'init'이 무엇인가?
init는 컴퓨터가 시작되자마자 시작되어 종료될 때까지 계속 실행되는 데몬 프로세스이다. in-fact init는 컴퓨터가 부팅될 때 시작되는 첫 번째 프로세스로, 직접 또는 간접적으로 실행 중인 다른 모든 프로세스의 상위 프로세스이므로 일반적으로 "pid=1"로 할당된다.
2. 'init'의 대체
(1) 대체의 필요성
A init process starts serially. 이는 불필요하게 부팅속도를 지연시키는 문제점을 야기했다. 이에 따라 개별 프로세스를 빠르게 처리하는 것보다는 깔끔하게 처리하는 대체 데몬이 필요했다.
(2) 대체물들: Upstart, Epoch, Mudar, systemd
3. 'systemd'는 무엇인가?
"이름 끝에 'd'를 추가하여 Daemon임을 명시하는 UNIX convention"에 따라 이름지어진 System Management Daemon.
init와 비슷하게 다른 모든 프로세스의 부모이며 부팅 시 시작되는 첫 번째 프로세스이므로 "pid=1"이 할당된다. 또한 병렬적으로 프로세스를 시작하기 때문에 부팅 시간과 계산 오버헤드를 줄여 init의 단점을 극복한다.
cf. spelling
Yes, it is written systemd, not system D or System D, or even SystemD. And it isn't system d either. Why? Because it's a system daemon, and under Unix/Linux those are in lower case, and get suffixed with a lower case d. And since systemd manages the system, it's called systemd. It's that simple. But then again, if all that appears too simple to you, call it (but never spell it!) System Five Hundred since D is the roman numeral for 500 (this also clarifies the relation to System V, right?). The only situation where we find it OK to use an uppercase letter in the name (but don't like it either) is if you start a sentence with systemd. On high holidays you may also spell it sÿstëmd. But then again, Système D is not an acceptable spelling and something completely different (though kinda fitting).
출처: https://www.freedesktop.org/wiki/Software/systemd/
출처: https://www.tecmint.com/systemd-replaces-init-in-linux/
댓글