blob: f0ca370fd17ebfd1f81c8f552d591aeefd466d0e (
plain) (
tree)
|
|
if [ -e /initramfs/plugin-conf/syslog.conf ]; then
. /initramfs/plugin-conf/syslog.conf
if [ $syslog_active -ne 0 ]; then
# TODO: maybe limit the maximum log file size via rotation?
params="-s 0"
if [ -n "$syslog_host" ]; then
if [ -n "${syslog_port}" ]; then
host="${syslog_host}:${syslog_port}"
else
host="${syslog_host}"
fi
params="$params -R ${host}"
fi
echo "syslogd $params ..."
syslogd $params >/dev/null 2>&1
klogd >/dev/null 2>&1
fi
fi
|