summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asterisk-controller.lua2
-rw-r--r--asterisk-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/asterisk-controller.lua b/asterisk-controller.lua
index d771230..25994a3 100644
--- a/asterisk-controller.lua
+++ b/asterisk-controller.lua
@@ -11,7 +11,7 @@ status = function( self )
end
startstop = function( self )
- return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.get_status, self.clientdata)
+ return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
end
listfiles = function( self )
diff --git a/asterisk-model.lua b/asterisk-model.lua
index 4aa9f6e..0757bbc 100644
--- a/asterisk-model.lua
+++ b/asterisk-model.lua
@@ -29,7 +29,7 @@ get_status = function()
end
function startstop_service(action)
- return modelfunctions.startstop_service(processname, action, {"start", "stop", "restart", "reload"})
+ return modelfunctions.startstop_service(processname, action, {"Start", "Stop", "Restart", "Reload"})
end
get_file = function(filename)