diff options
Diffstat (limited to 'snort-model.lua')
-rw-r--r-- | snort-model.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/snort-model.lua b/snort-model.lua index e602a16..02c5a1e 100644 --- a/snort-model.lua +++ b/snort-model.lua @@ -9,6 +9,8 @@ require("procps") require("daemoncontrol") require("format") +local processname = "snort" + local configfile = "/etc/snort/snort.conf" -- ################################################################################ @@ -41,7 +43,8 @@ function get_filedetails() end function startstop_service ( self, state ) - return daemoncontrol.daemoncontrol("snort", state) + local cmdresult,cmdmessage,cmderror,cmdaction = daemoncontrol.daemoncontrol(processname, state) + return cmdmessage end function read_alert() |