]> git.99rst.org Git - openwrt-packages.git/commitdiff
rsyslog: track config files for procd restart
authorMichael Pfeifroth <redacted>
Fri, 29 May 2026 08:34:54 +0000 (10:34 +0200)
committerAlexandru Ardelean <redacted>
Fri, 7 Aug 2026 10:37:49 +0000 (13:37 +0300)
Add 'procd_set_param file' for both the base config and the generated
config file so procd detects config changes and restarts rsyslogd.

Without this, procd_add_reload_trigger fires on config changes but
procd does not restart the service because the command line is
identical. This leaves stale configuration active until a manual
restart.

Signed-off-by: Michael Pfeifroth <redacted>
admin/rsyslog/files/rsyslog.init

index 77a9fc70505dbf817096752b5e39a1bb8850dd95..f06617e45e03685e5528f0b5eb2b8f50367adba7 100644 (file)
@@ -104,6 +104,7 @@ start_service() {
        expand_config
        procd_open_instance
        procd_set_param command /usr/sbin/rsyslogd -f ${CONFIG_FILE} -n
+       procd_set_param file ${BASE_CONFIG_FILE} ${CONFIG_FILE}
        procd_close_instance
 }
 
git clone https://git.99rst.org/PROJECT