512aaa1afc
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
30 lines
435 B
Bash
Executable File
30 lines
435 B
Bash
Executable File
#!/bin/sh
|
|
. ${srcdir}/test.rc
|
|
|
|
if [ x"${srcdir}" = x ]; then
|
|
srcdir=.
|
|
fi
|
|
|
|
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
|
|
EOF
|
|
|
|
../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} &
|
|
echo "$!" > ${PID}
|
|
|
|
sleep 1
|
|
kill -USR1 `cat ${PID}`
|
|
sleep 1
|