From 8d365a20861b19cba2352383319bc8d1d6272a1c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 8 Dec 2008 15:41:47 +0000 Subject: Modified shorewall to show error output when running check. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1626 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shorewall-model.lua b/shorewall-model.lua index 8df2d4d..dd7a864 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -193,7 +193,7 @@ function startstop_service(action) end function configcheck () - local f = io.popen("/bin/echo -n '>> Check starts at: ';/bin/date; /bin/echo; /etc/init.d/shorewall check; /bin/echo; /bin/echo -n '>> Check stops at: '; /bin/date;") + local f = io.popen("/bin/echo -n '>> Check starts at: ';/bin/date; /bin/echo; /etc/init.d/shorewall check 2>&1; /bin/echo; /bin/echo -n '>> Check stops at: '; /bin/date;") local checkresult = f:read("*a") f:close() return cfe({ type="longtext", value=checkresult, label="Result of checking config" }) -- cgit v1.2.3