mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 12:06:51 +04:00
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:
1 parent
6b5954ef81
commit
900251a607
1 file changed
+1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user