summaryrefslogtreecommitdiffstats
path: root/lighttpd-model.lua
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-10-01 15:23:23 +0000
committerJeff Bilyk <jbilyk@gmail.com>2011-10-01 15:23:23 +0000
commitb305554cc566f41cb4e3b707ff9e3fa41cea3533 (patch)
tree98d4e2e10590219f3f5cb3bdb63d9d1fbd250db7 /lighttpd-model.lua
parent4aa007e7d9c4d1c58b9e80cb375a6bd92661072a (diff)
downloadacf-lighttpd-b305554cc566f41cb4e3b707ff9e3fa41cea3533.tar.bz2
acf-lighttpd-b305554cc566f41cb4e3b707ff9e3fa41cea3533.tar.xz
Fix typos and correct paths to config and log files
Diffstat (limited to 'lighttpd-model.lua')
-rw-r--r--lighttpd-model.lua17
1 files changed, 6 insertions, 11 deletions
diff --git a/lighttpd-model.lua b/lighttpd-model.lua
index 53c8310..b8c08e5 100644
--- a/lighttpd-model.lua
+++ b/lighttpd-model.lua
@@ -8,8 +8,7 @@ require("format")
-- Set variables
local processname = "lighttpd"
local packagename = "lighttpd"
-local filelist = {"/etc/lighttpd/lightpd.conf",
-"/etc/lighttpd/mod_cgi.conf"}
+local filelist = {"/etc/lighttpd/lighttpd.conf", "/etc/lighttpd/mod_cgi.conf", "/etc/lighttpd/mod_fastcgi.conf", "/etc/lighttpd/mod_fastcgi_fpm.conf"}
local path = "PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin "
@@ -24,13 +23,11 @@ function startstop_service(action)
end
function getstatus()
- return modelfunctions.getstatus(processname, packagename,
-"Lighttpd Status")
+ return modelfunctions.getstatus(processname, packagename, "Lighttpd Status")
end
function getstatusdetails()
- return cfe({ type="longtext", value="", label="Lighttpd Status
-Details" })
+ return cfe({ type="longtext", value="", label="Lighttpd Status Details" })
end
function getfilelist()
@@ -43,8 +40,7 @@ function getfilelist()
table.sort(listed_files, function (a,b) return (a.filename < b.filename) end )
- return cfe({ type="list", value=listed_files, label="Lighttpd
-File List" })
+ return cfe({ type="list", value=listed_files, label="Lighttpd File List" })
end
function getfiledetails(filename)
@@ -59,14 +55,13 @@ function getlogfile ()
local files = {}
local logfilepath = format.parse_configfile(fs.read_file(filelist[1]) or "").LogFile
if not logfilepath then
- files[#files+1] = {path =
-"/var/log/lighttpd/access.log"}
+ files[#files+1] = {path = "/var/log/lighttpd/access.log"}
else
files[#files+1] = {path=logfilepath}
end
logfilepath = format.parse_configfile(fs.read_file(filelist[2]) or "").UpdateLogFile
if not logfilepath then
- files[#files+1] = {path = "/var/log/eror.log"}
+ files[#files+1] = {path = "/var/log/lighttpd/error.log"}
else
files[#files+1] = {path=logfilepath}
end