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 <redacted>
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
USE_PROCD=1
-BIN=/usr/bin/prosodyctl
+BIN=/usr/bin/prosody
start_service() {
[ -d /var/run/prosody ] || {
}
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
}