4ee6211277
This patch is inspired, in part, by FreeBSD syslogd but now diverges onto its own path. Special handling for AF_UNIX sockets are required on Linux, which unlike BSD cannot use getaddrinfo() on UNIX sockets. - Rip out old funix[] and finet support - Add new concept of peers - Linked list of peers can be > 20 - Temporarily open up to accept all remote conns - Remove old logerror(), replaced with new log macros Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
29 lines
456 B
Bash
Executable File
29 lines
456 B
Bash
Executable File
#!/bin/sh
|
|
if [ x"${srcdir}" = x ]; then
|
|
srcdir=.
|
|
fi
|
|
. ${srcdir}/test.rc
|
|
|
|
mkdir -p ${CONFD}
|
|
cat <<EOF > ${CONF}
|
|
# Nothing here yo
|
|
include ${CONFD}/*.conf
|
|
EOF
|
|
|
|
cat <<EOF > ${CONFD}/foo.conf
|
|
# Local log file, avoid sync to disk
|
|
*.* -${LOG}
|
|
EOF
|
|
|
|
cat <<EOF > ${CONFD}/bar.conf
|
|
# For remote logging
|
|
*.* @127.0.0.2:${PORT}
|
|
EOF
|
|
|
|
../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} -p ${ALTSOCK} &
|
|
echo "$!" > ${PID}
|
|
|
|
sleep 2
|
|
kill -USR1 `cat ${PID}`
|
|
sleep 1
|