Use of PIDFile= in php-fpm.service
まだ誰も着手していません。
評価
調査の方向性
まず php-fpm.service ユニットを見つけ、pid = がコメントアウトされているデフォルトの php-fpm.conf と併せて、その PIDFile= 設定を確認します。次に、issue にリンクされている systemd.service(5) のガイダンスを確認し、ディレクティブを削除してもサービス定義の動作が変わらず、ユニットに PIDFile= が含まれなくなることを検証します。
索引モデルが issue の本文から書いたものです。
説明
Description
When using Type=simple or Type=notify services, the process executed in ExecStart= is monitored directly by systemd and is automatically the main PID. The use of PIDFile= is useless and discouraged by the systemd.service(5) manual page:
Note that PID files should be avoided in modern projects. Use Type=notify, Type=notify-reload or Type=simple where possible, which does not require use of PID files to determine the main process of a service and avoids needless forking.
Source: https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#PIDFile=
Furthermore, the default configuration of php-fpm.conf has pid = commented out, which is equivalent to not having a PID file.
From systemd's point of view, the service remains exactly the same without the PIDFile= directive. I suggest, therefore, that it be dropped.
PHP Version
PHP 8.5.5 (cli) (built: Apr 8 2026 14:36:19) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.5, Copyright (c) Zend Technologies
with Zend OPcache v8.5.5, Copyright (c), by Zend Technologies
Operating System
No response
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 112
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/php-src のほかの issue
-
Bug SAPI: cli_server Status: Verified
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Bug Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
Bug Status: Needs Triage
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Bug Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Bug Category: Tests Status: Verified
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
level/task module/gcp type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
P3 sonic-vpp
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sonic-net/sonic-buildimage#29662 ·