summaryrefslogtreecommitdiffstats
path: root/syslog-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'syslog-model.lua')
-rw-r--r--syslog-model.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/syslog-model.lua b/syslog-model.lua
index 0045b5b..f4b2681 100644
--- a/syslog-model.lua
+++ b/syslog-model.lua
@@ -28,8 +28,13 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function startstop_service ( self, state )
- return daemoncontrol.daemoncontrol("syslog", state)
+function startstop_service ( self, action )
+ local cmd = action.value
+ local cmdresult,cmdaction,cmdmessage,cmderror = daemoncontrol.daemoncontrol("syslog", cmd)
+ action.descr=cmdmessage
+ action.errtxt=cmderror
+ return action
+
end
function getstatus()
@@ -201,7 +206,7 @@ function setconfigs(self,variable,parameter,value)
-- if (errorscmd) and (#errorscmd > 0) then
local errorscmd = cfe({ name="variable", errtxt=errorscmd, })
-- end
- return errorscmd
+ return true, e
end
function update_filecontent (self, modifications)