diff options
-rw-r--r-- | shorewall-controller.lua | 2 | ||||
-rw-r--r-- | shorewall-model.lua | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua index da88e40..99b31c4 100644 --- a/shorewall-controller.lua +++ b/shorewall-controller.lua @@ -31,7 +31,7 @@ function details(self) end function startstop(self) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) end function listfiles(self) diff --git a/shorewall-model.lua b/shorewall-model.lua index 1d78ebb..3669fc0 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -171,14 +171,7 @@ end -- PUBLIC FUNCTIONS function getstatus() - local status = modelfunctions.getstatus(processname, packagename, "Shorewall Status") - local details = getstatusdetails() - if string.match(details.value, "Shorewall is running") then - status.value.status.value = "Running" - else - status.value.status.value = "Stopped" - end - return status + return modelfunctions.getstatus(processname, packagename, "Shorewall Status") end function getstatusdetails() |