blob: f0ca370fd17ebfd1f81c8f552d591aeefd466d0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|