Commit 6229f0fa authored by Ad Schellevis's avatar Ad Schellevis

fix squid status reporting

parent bf4987f5
...@@ -82,7 +82,7 @@ class ServiceController extends ApiControllerBase ...@@ -82,7 +82,7 @@ class ServiceController extends ApiControllerBase
if (strpos($response, "not running") > 0) { if (strpos($response, "not running") > 0) {
$status = "stopped"; $status = "stopped";
} elseif (strpos($response, "not running") > 0) { } elseif (strpos($response, "is running") > 0) {
$status = "running"; $status = "running";
} else { } else {
$status = "unkown"; $status = "unkown";
......
...@@ -20,4 +20,4 @@ message:restarting proxy ...@@ -20,4 +20,4 @@ message:restarting proxy
command:/usr/local/etc/rc.d/squid status;exit 0 command:/usr/local/etc/rc.d/squid status;exit 0
parameters: parameters:
type:script_output type:script_output
message:restarting proxy message:request proxy status
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment