Fixes in adjust-php-fpm-services

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 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 strict;
use warnings; use warnings;
use esmith::ConfigDB; use esmith::ConfigDB;
use esmith::util;
my $c = esmith::ConfigDB->open_ro || die "Couldn't open the configuration database\n"; my $c = esmith::ConfigDB->open_ro || die "Couldn't open the configuration database\n";
my @fpms = qw( 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 # so if we move a pool from one version to another, we won't have a socket conflict
foreach my $fpm (@fpms){ foreach my $fpm (@fpms){
my $service = $c->get($fpm);
esmith::util::serviceControl( esmith::util::serviceControl(
NAME => $fpm, NAME => $fpm,
ACTION => 'stop', ACTION => 'stop',
BACKGROUND => 'false') BACKGROUND => 'false')
or die "Unable to stop $fpm\n"; or warn "Unable to stop $fpm\n";
} }
foreach my $fpm (@fpms){ foreach my $fpm (@fpms){

Loading…
Cancel
Save