rsyslog: track config files for procd restart

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 <michael.pfeifroth@westermo.com>
This commit is contained in:
Michael Pfeifroth authored and Alexandru Ardelean committed 2026-08-07 13:37:49 +03:00
1 parent 6b5954ef81
commit 900251a607
1 file changed
+1
+1
View 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
}