File: //usr/lib/systemd/system/php8.5-fpm.service
[Unit]
Description=The PHP 8.5 FastCGI Process Manager
Documentation=man:php-fpm8.5(8)
After=network.target
[Service]
Type=notify
ExecStart=/usr/sbin/php-fpm8.5 --nodaemonize --fpm-config /etc/php/8.5/fpm/php-fpm.conf
ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.5/fpm/pool.d/www.conf 85
ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.5/fpm/pool.d/www.conf 85
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-failure
ProtectSystem=full
PrivateDevices=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=true
[Install]
WantedBy=multi-user.target