diff options
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r-- | tinydns-model.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua index ad83798..3b91cb3 100644 --- a/tinydns-model.lua +++ b/tinydns-model.lua @@ -6,6 +6,7 @@ require("getopts") require("fs") require("format") require("processinfo") +require("daemoncontrol") -- Set variables local configdir @@ -262,6 +263,14 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS +function startstop_service ( self, action ) + local cmd = action.value + local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol(processname, cmd) + action.descr=cmdmessage + action.errtxt=cmderror + return cmdresult,action +end + function valid_filename(self,path) return validfilename(path) end |