Allow advanced configurations from /etc/rsyslog.conf file
Signed-off-by: Giacomo Sanchietti <giacomo.sanchietti@nethesis.it>
UCI_CONF="rsyslog"
CONFIG_FILE="/var/etc/rsyslog.conf"
+BASE_CONFIG_FILE="/etc/rsyslog.conf"
modules=""
selectors=""
config_foreach handle_selector selector
config_foreach handle_forwarder forwarder
+ mkdir -p $(dirname ${CONFIG_FILE})
> ${CONFIG_FILE}
+ echo "include(file=\"${BASE_CONFIG_FILE}\" mode=\"optional\")" >> ${CONFIG_FILE}
for m in ${modules}; do
echo "module(load=\"${m}\")" >> ${CONFIG_FILE}
done