sysklogd/test/start.sh
Joachim Nilsson 8f459d349a test: Check sending log messages to remote server works
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-10-30 17:14:29 +01:00

17 lines
207 B
Bash
Executable File

#!/bin/sh
. ./test.rc
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
cat <<EOF > ${CONF}
*.* -${LOG}
*.* @127.0.0.2
EOF
../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} &
echo "$!" > ${PID}
sleep 1