Set KillMode=mixed in php-fpm.service
@bukka arbeitet bereits daran.
Seit 25.5.2025.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
Description
php-fpm.service doesn't set KillMode ([Service] section), so it uses control-group, which sends SIGTERM to all processes in the service's cgroup. For php-fpm, where the master process manages child workers, KillMode=mixed is generally better. It sends SIGTERM only to the master process, letting it handle child termination gracefully. If the master doesn't exit within TimeoutStopSec, systemd sends SIGKILL to all processes in the cgroup. If the master exits but leaves child processes behind, systemd sends SIGKILL to clean them up. The mixed option has been supported since systemd 209, which is quite old, so compatibility isn't an issue. More details can be found in the systemd.kill(5) man page.
Thanks!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.