From 2b5a0f05362308d68c855425a682b4b532431c4c Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 5 Dec 2007 17:06:05 +0000 Subject: Added functionallity for viewing the logfile git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@412 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openntpd-controller.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openntpd-controller.lua') diff --git a/openntpd-controller.lua b/openntpd-controller.lua index 8b1fe04..9e520c6 100644 --- a/openntpd-controller.lua +++ b/openntpd-controller.lua @@ -31,6 +31,10 @@ settings = function (self) end end +logfile = function (self) + return ( {logfile = self.model:get_logfile(), url = url } ) +end + read = function (self) local cmd = self.clientdata.cmd local url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller -- cgit v1.2.3