summaryrefslogtreecommitdiffstats
path: root/snort-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-02-01 18:40:55 +0000
committerMika Havela <mika.havela@gmail.com>2008-02-01 18:40:55 +0000
commit416387699c33283fa63fda4716b719b8fbe3275a (patch)
tree70b5c098dcbe2500180eca5793ef0a49389a31eb /snort-model.lua
parent5ebe237d50761f838463daf3134540964c6a3683 (diff)
downloadacf-snort-416387699c33283fa63fda4716b719b8fbe3275a.tar.bz2
acf-snort-416387699c33283fa63fda4716b719b8fbe3275a.tar.xz
Fixed start/stop/restart so it works again (earlier modifications to lib/daemoncontrol.lua)
git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@685 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'snort-model.lua')
-rw-r--r--snort-model.lua5
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()