Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
常駐サービスを実現するデーモンプロセス
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Satoru Takeuchi
PRO
February 23, 2025
Technology
95
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
常駐サービスを実現するデーモンプロセス
以下動画のテキストです。
https://youtu.be/wqetSitDL34
Satoru Takeuchi
PRO
February 23, 2025
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
119-多機能ファイルシステムBtrfs_のコピー.pdf
sat
PRO
1
67
Linuxカーネルの インタフェースは変わりうる?
sat
PRO
1
92
あなたの知らないバージョン命名規則
sat
PRO
3
890
Rook: Intro and Deep Dive with Ceph
sat
PRO
1
64
Machine Check Exception
sat
PRO
2
66
バイナリダンプの模様を読む
sat
PRO
0
89
cpコマンドはディスク上でデータを コピーしないことがある
sat
PRO
3
87
114-ファイルのshallow_copy.pdf
sat
PRO
2
57
113-Btrfsのスナップショット.pdf
sat
PRO
0
40
Other Decks in Technology
See All in Technology
Code4Lib JAPANカンファレンス2026 開会挨拶 / Code4Lib JAPAN Conference 2026: Opening Remarks
ykiyota
0
350
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
5
25k
ペアプロの価値はコードを書くことだけじゃない
codmoninc
PRO
0
210
AI時代だからこそ、スケールしないことをやろう
yutashigemura
1
170
AIを活用するために決めた "やらないこと" - 価値に注目する / Not betting on AI
soudai
PRO
1
410
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
170
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
1
750
消えない 動かない 効かない
yama3133
1
120
Microsoft 365 Copilot chat -tekoälypalvelun tietosuojaongelmat
hponka
0
830
「図書館」という名前のままでいいのか -Code4Lib JAPANカンファレンス2026 アンカンファレンス報告- / Code4Lib JAPAN Conference 2026: Unconference Report
ykiyota
0
170
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
540
なぜJMBC(Japan MCP Business Community)? MCPってどう活用できるの?
cdataj
0
110
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Ethics towards AI in product and experience design
skipperchong
2
370
KATA
mclloyd
PRO
35
15k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Bash Introduction
62gerente
615
220k
Designing for humans not robots
tammielis
254
26k
Evolving SEO for Evolving Search Engines
ryanjones
0
290
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
350
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
400
Transcript
常駐サービスを実現する デーモンプロセス Feb. 23rd, 2025 Satoru Takeuchi X: satoru_takeuchi 1
デーモンプロセスとは • 常駐サービスを実現するプロセス ◦ systemdの”*.service”というユニットに結びつくプロセスはデーモン • 端末のハングアップに影響を受けない ◦ 端末に結びついていないセッションに属する =>
端末のハングアップの影響を受けない • “demon(悪魔)”ではなく”daemon(守護神)” 2
デーモン図解 3 デーモン用のセッション デーモンプロセス セッション 端末
psで見るデーモン 4 $ ps ajx PPID PID PGID SID TTY
TPGID STAT UID TIME COMMAND ... 1 330 330 330 ? -1 S<s 0 0:12 /usr/lib/systemd/systemd-journald ...
サービスの設定ファイル再読み込み機能の実現方法 • デーモンプロセスは通常再起動せずに設定ファイルを再読み込みする機能がある (e.g. systemd reload) • 設定ファイルの再読み込みは一般にSIGHUPを使う ◦ デーモンプロセスは端末に結びついていない
◦ では端末終了時に使う SIGHUPを設定ファイルの再読み込み用に使おうという考え方 5
まとめ • 常駐サービスを実現するプロセスをデーモンプロセスと呼ぶ • 端末と結びついていないため、あらゆる端末の接続が切れても終了しないように なっている • 設定ファイルの再読み込みには一般にSIGHUPシグナルを使う 6