Diff

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
line wrap: on
line diff
--- a/core/portmanager.lua	Wed Feb 05 17:41:14 2020 +0000
+++ b/core/portmanager.lua	Wed Feb 05 17:41:40 2020 +0000
@@ -170,7 +170,7 @@
 local function register_service(service_name, service_info)
 	table.insert(services[service_name], service_info);
 
-	if not active_services:get(service_name) then
+	if not active_services:get(service_name) and prosody.process_type == "prosody" then
 		log("debug", "No active service for %s, activating...", service_name);
 		local ok, err = activate(service_name);
 		if not ok then