Set PIDFILE so services can be stopped

This commit is contained in:
Daniel Berteaud 2017-07-09 21:43:57 +02:00
parent b76293809c
commit d6b14adfc8
5 changed files with 12 additions and 1 deletions

View File

@ -12,15 +12,19 @@ foreach my $service (qw(php-fpm php56-php-fpm php70-php-fpm php71-php-fpm)){
foreach my $file qw( /etc/php-fpm.conf
/etc/php-fpm.d/www.conf
/etc/php-fpm.d/shares.conf
/etc/sysconfig/php-fpm
/opt/remi/php56/root/etc/php-fpm.conf
/opt/remi/php56/root/etc/php-fpm.d/www.conf
/opt/remi/php56/root/etc/php-fpm.d/shares.conf
/opt/remi/php56/root/etc/sysconfig/php-fpm
/etc/opt/remi/php70/php-fpm.conf
/etc/opt/remi/php70/php-fpm.d/www.conf
/etc/opt/remi/php70/php-fpm.d/shares.conf
/etc/opt/remi/php70/sysconfig/php-fpm
/etc/opt/remi/php71/php-fpm.conf
/etc/opt/remi/php71/php-fpm.d/www.conf
/etc/opt/remi/php71/php-fpm.d/shares.conf ){
/etc/opt/remi/php71/php-fpm.d/shares.conf
/etc/opt/remi/php71/sysconfig/php-fpm ){
templates2events($file, qw(webapps-update bootstrap-console-save));
safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin");
}

View File

@ -0,0 +1,2 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 70 }

View File

@ -0,0 +1,2 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 70 }

View File

@ -0,0 +1,2 @@
TEMPLATE_PATH="/etc/sysconfig/php-fpm"
MORE_DATA={ PHP_VERSION => 56 }

View File

@ -0,0 +1 @@
PIDFILE=/var/run/php-fpm/php{ $PHP_VERSION }-fpm.pid