, ("config_version", showJSON C.configVersion)
, ("os_api_version", showJSON $ maximum C.osApiVersions)
, ("export_version", showJSON C.exportVersion)
+ , ("vcs_version", showJSON C.vcsVersion)
, ("architecture", showJSON arch_tuple)
, ("name", showJSON $ clusterClusterName cluster)
, ("master", showJSON $ clusterMasterNode cluster)
-- | Type alias for prepMain results
type PrepResult = (FilePath, S.Socket, IORef (Result ConfigData))
--- | Check function for queryd.
+-- | Check function for luxid.
checkMain :: CheckFn ()
checkMain _ = return $ Right ()
--- | Prepare function for queryd.
+-- | Prepare function for luxid.
prepMain :: PrepFn () PrepResult
prepMain _ _ = do
socket_path <- Path.defaultQuerySocket
cleanupSocket socket_path
s <- describeError "binding to the Luxi socket"
- Nothing (Just socket_path) $ getServer socket_path
+ Nothing (Just socket_path) $ getServer True socket_path
cref <- newIORef (Bad "Configuration not yet loaded")
return (socket_path, s, cref)