4.1.37 on_node_init(Hook, Prio)

-spec on_node_init(fun(() -> _),
                   classy_hook:conf()) -> classy_hook:hook().

Register a hook that is executed when the node (not the site) starts.

It is called before classy:the_site/0 and classy:the_cluster/0 are initialized, and can be used to override the default cluster and site initialization logic.

JavaScript license information