Lua-based daemon supervisor