liquid_feedback_frontend

annotate app/main/_prefork/10_init.lua @ 1164:51a17a0e26e9

Removed not needed default config values
author bsw
date Tue Mar 24 15:44:12 2015 +0100 (2015-03-24)
parents e9f6ae14bc72
children 3b00c08a6b90
rev   line source
bsw@1158 1 if not config.fork then
bsw@1158 2 config.fork = {}
bsw@1158 3 end
bsw@1158 4
bsw@1158 5 if not config.port then
bsw@1158 6 config.port = 8080
bsw@1158 7 end
bsw@1158 8
bsw@1158 9 if config.localhost == nil then
bsw@1158 10 config.localhost = true
bsw@1158 11 end
bsw@1158 12
bsw@1158 13 listen{
bsw@1158 14 { proto = "tcp4", port = config.port, localhost = true },
bsw@1158 15 { proto = "interval", delay = 5, handler = function()
bsw@1158 16 Event:send_pending_notifications()
bsw@1158 17 end },
bsw@1158 18 pre_fork = config.fork.pre,
bsw@1158 19 max_fork = config.fork.max,
bsw@1158 20 fork_delay = config.fork.delay
bsw@1158 21 }
bsw@1158 22
bsw@1158 23 execute.inner()
bsw@1158 24

Impressum / About Us