<% require("viewfunctions") local form = ... local data = form.option local service = form.service local config = form.service.config local srv1fill = "" local srv2fill = "disabled" if form.info.status.value == "Enabled" then srv1fill = "disabled" srv2fill = "" end local ifthen = function( variable, value, result ) if variable == value then io.write( result ) end end %> <% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") --]] %>

SYSTEM INFO

<% local myform = form.info local tags = { "status", "version", "autostart", } displayinfo(myform,tags,"viewonly") %>

Configuration

<% if (#service.cfgerr > 0) then %>

Errors

Config errors
<% io.write( service.cfgerr ) %>
<% end %> <% for k,v in ipairs( config.files ) do io.write( "\n" ) end %>
File Size Last Modified
" .. v.path .. "" .. (v.size or "--") .."" .. (v.mtime or "--") .."

MANAGEMENT

Daemon control
> > > <% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %>
<% io.write( service.message.descr ) %>
<% end %>