Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
php-fpm.service: remove PIDFile
The PIDFile directive is unnecessary for services using Type=notify (if systemd integration is enabled) or
Type=simple and is discouraged by the systemd.service(5) manual. Since systemd monitors the main PID
directly from the process executed in ExecStart, it does not need a PID file to track the service.
Furthermore, the default configuration of php-fpm.conf has 'pid' commented out, which is equivalent to not
having a PID file.

Closes #21740
  • Loading branch information
marcosfrm committed Apr 13, 2026
commit 6221c19a5b3457f98ad14e78badb07bb0be7e5c9
1 change: 0 additions & 1 deletion sapi/fpm/php-fpm.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ After=network.target

[Service]
Type=@php_fpm_systemd@
PIDFile=@EXPANDED_LOCALSTATEDIR@/run/php-fpm.pid
ExecStart=@EXPANDED_SBINDIR@/php-fpm --nodaemonize --fpm-config @EXPANDED_SYSCONFDIR@/php-fpm.conf
ExecReload=/bin/kill -USR2 $MAINPID

Expand Down