Fixes in adjust-php-fpm-services

tags/0.0.1_0.fc26_el5
Daniel Berteaud 7 years ago
parent d6b14adfc8
commit 7d52484a4f
  1. 4
      root/etc/e-smith/events/actions/adjust-php-fpm-services

@ -3,6 +3,7 @@
use strict;
use warnings;
use esmith::ConfigDB;
use esmith::util;
my $c = esmith::ConfigDB->open_ro || die "Couldn't open the configuration database\n";
my @fpms = qw(
@ -16,12 +17,11 @@ my @fpms = qw(
# so if we move a pool from one version to another, we won't have a socket conflict
foreach my $fpm (@fpms){
my $service = $c->get($fpm);
esmith::util::serviceControl(
NAME => $fpm,
ACTION => 'stop',
BACKGROUND => 'false')
or die "Unable to stop $fpm\n";
or warn "Unable to stop $fpm\n";
}
foreach my $fpm (@fpms){

Loading…
Cancel
Save