From 6172d0b04c562ed44670302d3e20eb313822b7af Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 19 Jun 2022 12:08:37 +0800 Subject: [PATCH] Update php.service.tpl --- plugins/php/init.d/php.service.tpl | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/plugins/php/init.d/php.service.tpl b/plugins/php/init.d/php.service.tpl index 0ea463bf5..b80259583 100644 --- a/plugins/php/init.d/php.service.tpl +++ b/plugins/php/init.d/php.service.tpl @@ -7,19 +7,11 @@ Description=The PHP {$VERSION} FastCGI Process Manager After=network.target [Service] -Type=simple +Type=forking PIDFile={$SERVER_PATH}/php/{$VERSION}/var/run/php-fpm.pid -ExecStart={$SERVER_PATH}/php/{$VERSION}/sbin/php-fpm --nodaemonize --fpm-config {$SERVER_PATH}/php/{$VERSION}/etc/php-fpm.conf +ExecStart={$SERVER_PATH}/php/{$VERSION}/sbin/php-fpm --daemonize --fpm-config {$SERVER_PATH}/php/{$VERSION}/etc/php-fpm.conf ExecReload=/bin/kill -USR2 $MAINPID -PrivateTmp=true -ProtectSystem=full -PrivateDevices=true -ProtectKernelModules=true -ProtectKernelTunables=true -ProtectControlGroups=true -RestrictRealtime=true -RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX -RestrictNamespaces=true +PrivateTmp=false [Install] WantedBy=multi-user.target