mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
znc: do not watch znc.conf for changes
ZNC can modify its own config file (znc.conf) during runtime, for example using controlpanel or webadmin modules. Manually editing the znc.conf file while znc is running is strongly discouraged. Thus prodc should not watch this file, it would just lead to znc being restarted unnecessarily. As it happens, no restarts were done, because the watched path was specified incorrectly. It used ZNC_CONFIG instead of ZNC_CONFIG_DIR, and so it watched /tmp/etc/znc/configs/znc.conf/configs/znc.conf which does not exist. Remove the watch of znc.conf as it is not needed. Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
This commit is contained in:
committed by
Jonas Gorski
parent
a38196f151
commit
00feb12444
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=znc
|
PKG_NAME:=znc
|
||||||
PKG_VERSION:=1.10.1
|
PKG_VERSION:=1.10.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://znc.in/releases \
|
PKG_SOURCE_URL:=https://znc.in/releases \
|
||||||
|
|||||||
@@ -205,7 +205,6 @@ start_service() {
|
|||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param file /etc/config/znc
|
procd_set_param file /etc/config/znc
|
||||||
[ "$EXTERNAL_CONFIG" -eq 1 ] && procd_set_param file "${ZNC_CONFIG}/configs/znc.conf"
|
|
||||||
procd_set_param command /usr/bin/znc
|
procd_set_param command /usr/bin/znc
|
||||||
procd_append_param command -f -d$ZNC_CONFIG_PATH
|
procd_append_param command -f -d$ZNC_CONFIG_PATH
|
||||||
procd_set_param user ${RUNAS_USER}
|
procd_set_param user ${RUNAS_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user