* lua_ap_server_info; r:server_info() - Returns server info, such as the * executable filename, server root, mpm etc */
| 1595 | * executable filename, server root, mpm etc |
| 1596 | */ |
| 1597 | static int lua_ap_server_info(lua_State *L) |
| 1598 | { |
| 1599 | lua_newtable(L); |
| 1600 | |
| 1601 | lua_pushstring(L, "server_executable"); |
| 1602 | lua_pushstring(L, ap_server_argv0); |
| 1603 | lua_settable(L, -3); |
| 1604 | |
| 1605 | lua_pushstring(L, "server_root"); |
| 1606 | lua_pushstring(L, ap_server_root); |
| 1607 | lua_settable(L, -3); |
| 1608 | |
| 1609 | lua_pushstring(L, "scoreboard_fname"); |
| 1610 | lua_pushstring(L, ap_scoreboard_fname); |
| 1611 | lua_settable(L, -3); |
| 1612 | |
| 1613 | lua_pushstring(L, "server_mpm"); |
| 1614 | lua_pushstring(L, ap_show_mpm()); |
| 1615 | lua_settable(L, -3); |
| 1616 | |
| 1617 | return 1; |
| 1618 | } |
| 1619 | |
| 1620 | |
| 1621 | /* |
nothing calls this directly
no test coverage detected