diff options
-rw-r--r-- | syslog-model.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/syslog-model.lua b/syslog-model.lua index 67dd079..262bb17 100644 --- a/syslog-model.lua +++ b/syslog-model.lua @@ -8,6 +8,7 @@ require("daemoncontrol") require("validator") local configfile = "/etc/conf.d/syslog" +local processname = "syslog" local config = {} local function get_version() @@ -31,7 +32,7 @@ end -- action should be a CFE function startstop_service ( self, action ) local cmd = action.value - local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol("syslog", cmd) + local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol(processname, cmd) action.descr=cmdmessage action.errtxt=cmderror -- Reporting back (true|false, the original acition) |