module(..., package.seeall) --require("privsep") require("join") -- those should go into acf.conf local user="nobody" 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) end function status(self) end function config(self) local ctl = {} local opts = self.model.readopts() -- ctl.pidlist = self.priv.is_enabled() if pidlist then ctl.status = "enabled" else ctl.status = "Disabled" end ctl.opts = opts if opts and opts.remote then ctl.remote = "checked" ctl.host = opts.remote else ctl.remote = "" ctl.host = "" end return ctl end function expert(self) end