Added PHP 7.2 support + minor bugfixes and performance tweaks
Note when applying this update you will have to update existing nginx vhosts to match new listening addresses (IPv6). Preferably you should update them to unix socket though and apply the changes to the tor hidden service config as well
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
[Service]
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
ExecStop=
|
||||
ExecStop=-/sbin/start-stop-daemon --quiet --stop --pidfile /run/nginx.pid
|
||||
|
17
etc/systemd/system/php7.2-fpm.service
Normal file
17
etc/systemd/system/php7.2-fpm.service
Normal file
@ -0,0 +1,17 @@
|
||||
# This service is actually a systemd target,
|
||||
# but we are using a service since targets cannot be reloaded.
|
||||
|
||||
[Unit]
|
||||
Description=The PHP 7.2 FastCGI Process Manager (multi instance master)
|
||||
Documentation=man:php-fpm7.2(8)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecReload=/bin/true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
17
etc/systemd/system/php7.2-fpm@.service
Normal file
17
etc/systemd/system/php7.2-fpm@.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.2 FastCGI Process Manager (instance %i)
|
||||
Documentation=man:php-fpm7.2(8)
|
||||
After=network.target
|
||||
PartOf=php7.2-fpm.service
|
||||
ReloadPropagatedFrom=php7.2-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.2-fpm-%i.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm-%i.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
etc/systemd/system/php7.2-fpm@default.service
Normal file
17
etc/systemd/system/php7.2-fpm@default.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=The PHP 7.2 FastCGI Process Manager
|
||||
Documentation=man:php-fpm7.2(8)
|
||||
After=network.target
|
||||
PartOf=php7.2-fpm.service
|
||||
ReloadPropagatedFrom=php7.2-fpm.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
PIDFile=/run/php/php7.2-fpm.pid
|
||||
ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
LimitNOFILE=100000
|
||||
TimeoutStartSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user