#!/bin/sh if [ x"${srcdir}" = x ]; then srcdir=. fi . ${srcdir}/test.rc mkdir -p ${CONFD} cat < ${CONF} # Nothing here yo include ${CONFD}/*.conf EOF cat < ${CONFD}/foo.conf # Local log file, avoid sync to disk *.* -${LOG} EOF cat < ${CONFD}/bar.conf # For remote logging *.* @127.0.0.2 EOF ../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} -p ${ALTSOCK} & echo "$!" > ${PID} sleep 2 kill -USR1 `cat ${PID}` sleep 1