From 416387699c33283fa63fda4716b719b8fbe3275a Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 18:40:55 +0000 Subject: 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 --- snort-expert-html.lsp | 17 ++++++++++++----- snort-model.lua | 5 ++++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/snort-expert-html.lsp b/snort-expert-html.lsp index 9de9b0f..ab2ee56 100644 --- a/snort-expert-html.lsp +++ b/snort-expert-html.lsp @@ -1,5 +1,11 @@ - +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(view)) +io.write("
") +--]] +?>

SYSTEM INFO

@@ -57,17 +63,18 @@
- +
Previous action result
-
+
DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") --]] ?> 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() -- cgit v1.2.3