Set PIDFILE so services can be stopped

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent b76293809c
commit d6b14adfc8
  1. 6
      createlinks
  2. 2
      root/etc/e-smith/templates.metadata/etc/opt/remi/php70/sysconfig/php-fpm
  3. 2
      root/etc/e-smith/templates.metadata/etc/opt/remi/php71/sysconfig/php-fpm
  4. 2
      root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/sysconfig/php-fpm
  5. 1
      root/etc/e-smith/templates/etc/sysconfig/php-fpm/10PidFile

@ -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");
}

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

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

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

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