Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No more modproxy!
  • Loading branch information
perlDreamer committed Jan 8, 2012
1 parent be47c78 commit c8da009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wre/lib/WRE/Nginx.pm
Expand Up @@ -114,7 +114,7 @@ sub stop {
unless ($wreConfig->get("nginx/port") > 1024 || $host->isPrivilegedUser) {
croak "You are not an administrator on this machine so you cannot stop services with ports 1-1024.";
}
my $cmd = $wreConfig->getRoot("/prereqs/sbin/nginx")." -c ".$wreConfig->getRoot("/etc/modproxy.conf")." -s stop";
my $cmd = $wreConfig->getRoot("/prereqs/sbin/nginx")." -c ".$wreConfig->getRoot("/etc/nginx.conf")." -s stop";
`$cmd`; # catch command line output
my $count = 0;
my $success = 0;
Expand All @@ -123,7 +123,7 @@ sub stop {
$count++;
}
if ($success) {
$wreConfig->set("wreMonitor/modproxyAdministrativelyDown", 1);
$wreConfig->set("wreMonitor/nginxAdministrativelyDown", 1);
}
return $success;
}
Expand Down

0 comments on commit c8da009

Please sign in to comment.