Skip to content
Permalink
Browse files

Need the wreConfig object if we're going to change status.

  • Loading branch information...
perlDreamer committed Jan 11, 2012
1 parent 798f9fa commit 7720a6c8d8527938444bb0b7428cfd57da532e7d
Showing with 2 additions and 0 deletions.
  1. +2 −0 wre/lib/WRE/Nginx.pm
@@ -134,6 +134,7 @@ sub start {
$count++;
}
if ($success) {
my $wreConfig = $self->wreConfig;
$wreConfig->set("wreMonitor/nginxAdministrativelyDown", 0);
}
return $success;
@@ -160,6 +161,7 @@ sub stop {
$count++;
}
if ($success) {
my $wreConfig = $self->wreConfig;
$wreConfig->set("wreMonitor/nginxAdministrativelyDown", 1);
}
return $success;

0 comments on commit 7720a6c

Please sign in to comment.
You can’t perform that action at this time.