2019-10-29 15:38:23 +05:30
|
|
|
#!/bin/sh
|
|
|
|
if [ x"${srcdir}" = x ]; then
|
|
|
|
srcdir=.
|
|
|
|
fi
|
2019-11-07 23:28:25 +05:30
|
|
|
. ${srcdir}/test.rc
|
2019-10-29 15:38:23 +05:30
|
|
|
|
2019-11-02 16:17:24 +05:30
|
|
|
mkdir -p ${CONFD}
|
2019-10-30 21:44:29 +05:30
|
|
|
cat <<EOF > ${CONF}
|
2019-11-02 16:17:24 +05:30
|
|
|
# Nothing here yo
|
|
|
|
include ${CONFD}/*.conf
|
|
|
|
EOF
|
|
|
|
|
2019-11-14 05:50:42 +05:30
|
|
|
mkdir -p ${CONFD2}
|
|
|
|
cat <<EOF > ${CONF2}
|
|
|
|
# Nothing here yo
|
|
|
|
include ${CONFD2}/*.conf
|
|
|
|
EOF
|
|
|
|
|
2019-11-02 16:17:24 +05:30
|
|
|
cat <<EOF > ${CONFD}/foo.conf
|
|
|
|
# Local log file, avoid sync to disk
|
2019-10-29 15:38:23 +05:30
|
|
|
*.* -${LOG}
|
2019-11-02 16:17:24 +05:30
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<EOF > ${CONFD}/bar.conf
|
|
|
|
# For remote logging
|
2019-11-12 17:57:07 +05:30
|
|
|
*.* @127.0.0.2
|
2019-10-29 15:38:23 +05:30
|
|
|
EOF
|
|
|
|
|
2019-12-02 01:42:02 +05:30
|
|
|
../src/syslogd -m1 -b :${PORT} -d -sF -f ${CONF} -p ${SOCK} -p ${ALTSOCK} &
|
2019-10-30 21:44:29 +05:30
|
|
|
echo "$!" > ${PID}
|
2019-10-29 15:38:23 +05:30
|
|
|
|
2019-11-07 23:28:47 +05:30
|
|
|
sleep 2
|
2019-11-04 00:21:02 +05:30
|
|
|
kill -USR1 `cat ${PID}`
|
|
|
|
sleep 1
|