Comparison

core/portmanager.lua @ 10641:85f1cbfd364a

portmanager: Don't auto-start network services under prosodyctl
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 Feb 2020 17:41:40 +0000
parent 10538:71b82567245c
child 11412:77785c5d6773
comparison
equal deleted inserted replaced
10640:5622eda7c5c5 10641:85f1cbfd364a
168 end 168 end
169 169
170 local function register_service(service_name, service_info) 170 local function register_service(service_name, service_info)
171 table.insert(services[service_name], service_info); 171 table.insert(services[service_name], service_info);
172 172
173 if not active_services:get(service_name) then 173 if not active_services:get(service_name) and prosody.process_type == "prosody" then
174 log("debug", "No active service for %s, activating...", service_name); 174 log("debug", "No active service for %s, activating...", service_name);
175 local ok, err = activate(service_name); 175 local ok, err = activate(service_name);
176 if not ok then 176 if not ok then
177 log("error", "Failed to activate service '%s': %s", service_name, err or "unknown error"); 177 log("error", "Failed to activate service '%s': %s", service_name, err or "unknown error");
178 end 178 end