sysklogd/test/stop.sh
Joachim Nilsson 77119e2625 test: stop.sh: Exit on first error
We want to catch regressions when syslogd dies before we can tell it to
exit.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-29 11:23:05 +01:00

22 lines
298 B
Bash
Executable File

#!/bin/sh -e
if [ x"${srcdir}" = x ]; then
srcdir=.
fi
. ${srcdir}/test.rc
if [ -e ${PID} ]; then
echo "Killing `cat ${PID}` ..."
kill `cat ${PID}`
fi
rm -f ${LOG}
rm -f ${LOGV1}
rm -f ${LOGCONS}
rm -f ${PID}
rm -f ${CAP}
rm -f ${SOCK}
rm -f ${CONF}
rm -rf ${CONFD}
rm -rf ${CONFD2}