PoolSize = ejabberd_config:has_option({redis_pool_size, Host}),
ConnTimeoutConfigured = ejabberd_config:has_option(
{redis_connect_timeout, Host}),
- Modules = ejabberd_config:get_option({modules, Host}, []),
SMConfigured = ejabberd_config:get_option({sm_db_type, Host}) == redis,
RouterConfigured = ejabberd_config:get_option({router_db_type, Host}) == redis,
- ModuleWithRedisDBConfigured =
- lists:any(
- fun({Module, Opts}) ->
- gen_mod:db_type(Host, Opts, Module) == redis
- end, Modules),
ServerConfigured or PortConfigured or DBConfigured or PassConfigured or
PoolSize or ConnTimeoutConfigured or
- SMConfigured or RouterConfigured or ModuleWithRedisDBConfigured.
+ SMConfigured or RouterConfigured.
get_specs() ->
lists:map(
ejabberd_auth:auth_modules(Host)),
SMConfigured = ejabberd_config:get_option({sm_db_type, Host}) == riak,
RouterConfigured = ejabberd_config:get_option({router_db_type, Host}) == riak,
- Modules = ejabberd_config:get_option({modules, Host}, []),
- ModuleWithRiakDBConfigured = lists:any(
- fun({Module, Opts}) ->
- gen_mod:db_type(Host, Opts, Module) == riak
- end, Modules),
ServerConfigured or PortConfigured or StartIntervalConfigured
or PoolConfigured or CacertConfigured
or UserConfigured or PassConfigured
or SMConfigured or RouterConfigured
- or AuthConfigured or ModuleWithRiakDBConfigured.
+ or AuthConfigured.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).