rsyslog: write config file to RAM
Avoid wearing out flash storage Signed-off-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
This commit is contained in:
parent
443bc5720e
commit
dda5f84630
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ START=20
|
|||
USE_PROCD=1
|
||||
|
||||
UCI_CONF="rsyslog"
|
||||
CONFIG_FILE="/etc/rsyslog.conf"
|
||||
CONFIG_FILE="/var/etc/rsyslog.conf"
|
||||
|
||||
modules=""
|
||||
selectors=""
|
||||
|
@ -93,7 +93,7 @@ handle_module() {
|
|||
start_service() {
|
||||
expand_config
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/rsyslogd -n
|
||||
procd_set_param command /usr/sbin/rsyslogd -f ${CONFIG_FILE} -n
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue