diff options
Diffstat (limited to 'syslog-controller.lua')
-rw-r--r-- | syslog-controller.lua | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/syslog-controller.lua b/syslog-controller.lua index be3e322..76089fb 100644 --- a/syslog-controller.lua +++ b/syslog-controller.lua @@ -1,7 +1,7 @@ module(..., package.seeall) -require("privsep") +--require("privsep") require("join") -- those should go into acf.conf @@ -11,19 +11,20 @@ local group="nobody" -- drop privileges and put privileged model funcs in self.priv mvc = {} function mvc.on_load(self) - self.priv = privsep.drop_privs(user, group, self.model.priv) +-- self.priv = privsep.drop_privs(user, group, self.model.priv) end -function basic(self) + +function status(self) +end +function config(self) local ctl = {} local opts = self.model.readopts() - ctl.pidlist = self.priv.is_enabled() +-- ctl.pidlist = self.priv.is_enabled() if pidlist then - ctl.enabled = "checked=yes" - ctl.disabled = "" + ctl.status = "enabled" else - ctl.enabled = "" - ctl.disabled = "checked=yes" + ctl.status = "Disabled" end ctl.opts = opts if opts and opts.remote then @@ -33,7 +34,8 @@ function basic(self) ctl.remote = "" ctl.host = "" end - ctl.debug="opts="..tostring(opts) - return ctl end +function expert(self) +end + |