From: Josef Schlehofer Date: Sun, 9 Aug 2026 08:56:48 +0000 (+0200) Subject: prosody: do not drive the service through prosodyctl X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=715c606e57664c78dddd4382ee08a3de9324cb02;p=openwrt-packages.git prosody: do not drive the service through prosodyctl prosodyctl refuses start, stop, restart and reload once it detects an init system, and /etc/init.d/prosody makes that detection always true. The refusal is fatal, so the service could neither be started nor stopped: ERROR: Use of 'prosodyctl stop' is disabled in this installation because we detected that this system uses rc.d for managing services. Let procd supervise the daemon directly with -F instead, and reload the configuration with SIGHUP, which is what prosody expects. Signed-off-by: Josef Schlehofer --- diff --git a/net/prosody/Makefile b/net/prosody/Makefile index f4b3e6502..fc747144d 100644 --- a/net/prosody/Makefile +++ b/net/prosody/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=prosody PKG_VERSION:=13.0.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://prosody.im/downloads/source diff --git a/net/prosody/files/prosody.init b/net/prosody/files/prosody.init index 6bf93797d..2adc6ed66 100755 --- a/net/prosody/files/prosody.init +++ b/net/prosody/files/prosody.init @@ -5,7 +5,7 @@ START=99 USE_PROCD=1 -BIN=/usr/bin/prosodyctl +BIN=/usr/bin/prosody start_service() { [ -d /var/run/prosody ] || { @@ -25,17 +25,13 @@ start_service() { } procd_open_instance - procd_set_param command "$BIN" start + procd_set_param command "$BIN" -F procd_set_param file /etc/prosody/prosody.cfg.lua procd_set_param user prosody procd_set_param group prosody procd_close_instance } -stop_service() { - ${BIN} stop -} - reload_service() { - ${BIN} reload + procd_send_signal prosody }