summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openntpd-expert-html.lsp6
-rw-r--r--openntpd-model.lua4
2 files changed, 9 insertions, 1 deletions
diff --git a/openntpd-expert-html.lsp b/openntpd-expert-html.lsp
index 9de9b0f..b632646 100644
--- a/openntpd-expert-html.lsp
+++ b/openntpd-expert-html.lsp
@@ -1,4 +1,10 @@
<? local view = ... ?>
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
<h1>SYSTEM INFO</h1>
diff --git a/openntpd-model.lua b/openntpd-model.lua
index ff7c470..7a93151 100644
--- a/openntpd-model.lua
+++ b/openntpd-model.lua
@@ -107,7 +107,9 @@ end
-- PUBLIC FUNCTIONS
function startstop_service ( self, state )
- return daemoncontrol.daemoncontrol("ntpd", state)
+ local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol("ntpd", state)
+ cmdresult = {cmdresult=cmdmessage,}
+ return cmdresult
end