Linux & Terminali

init & PID 1

Në shqip: init dhe PID 1

ShpjegimiSQ

Procesi i parë që nis kernel-i merr PID 1 — në shumicën e sistemeve sot është systemd. Ai nis gjithçka tjetër dhe adopton proceset jetime. Në Docker, aplikacioni yt shpesh bëhet PID 1, prandaj duhet të trajtojë sinjalet mirë.

EnglishEN

The first process the kernel starts gets PID 1 — on most systems today that's systemd. It starts everything else and adopts orphan processes. In Docker your app often becomes PID 1, so it must handle signals properly.

Si ta mendosh

Si themeluesi i kompanisë që punëson të gjithë të tjerët.

Lexoje në anglisht

Like the company founder who hires everyone else.

Shembull kodibash

ps -p 1 -o comm=
# systemd

Terma të lidhur