Changeset

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
parents 10640:5622eda7c5c5
children 10642:de90b2f5da8c
files core/portmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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