Daemon
n. In multitasking computer operating systems, a daemon (/ˈdiːmən/ or /ˈdeɪmən/) is a computer program that runs as a background process, rather than being under the direct control of an interactive user.
Daemon = Service = Server Process
Service는 늘 켜져있는(나 또는 시스템이 켰을 경우) Server Process이지만, Socket은 다르다.
Socket은 필요할 때만, 작동하는 Server Process이다. Service와 Socket은 systemd가 작동시키거나 관리한다.
- systemd
Operating System의 가장 처음에 시작되는 Program中 1개이며, 대부분의 서비스를 관리한다.
systemd의 정의 및 세부적인 내용.
Service
n. With computer software, a service is software that performs automated tasks, responds to hardware events, or listens for data requests from other software. In a user's operating system, these services are often loaded automatically at startup, and run in the background, without user interaction. For example, in Microsoft Windows, many services are loaded to accomplish different functions. They respond to user keyboard shortcuts, index and optimize the file system, and communicate with other devices on the local network. An example of a Windows service is Messenger, which allows users to send messages to other Windows users. (from here)
Service란 시스템과 독자적으로 구동되어 제공하는 process.
Ubuntu 기준, /lib/systemd/system/ directory에 '서비스이름.service' 형태로 확인할 수 있다.
Socket
서비스와 비슷하나, 외부에서 특정 서비스를 요청할 경우 systemd가 구동시키며 요청이 끝나면 socket도 종료된다.
Ubuntu 기준, /lib/systemd/system/ directory에 '소켓이름.socket'의 형태로 확인할 수 있다.
'OS, Container > Operating System' 카테고리의 다른 글
Shell Scripting(a.k.a Linux의 꽃) (0) | 2020.10.17 |
---|---|
LVM (0) | 2020.10.03 |
Disk Mount/Unmount on Linux (0) | 2020.10.03 |
GRUB(Ubuntu) (0) | 2020.10.03 |
Process (0) | 2020.10.03 |