--- clamd.rc.orig 2004-08-03 09:19:37.433543714 -0400 +++ clamd.rc 2004-08-03 09:16:36.028960968 -0400 @@ -12,10 +12,12 @@ if [ -S "/tmp/clamd" ]; then rm -f /tmp/clamd fi - if [ -n "$CLAMD_LOG}" -a ! -f "${CLAMD_LOG}" ]; then - touch "${CLAMD_LOG}" - chown clamav:clamav "${CLAMD_LOG}" - CLAMD_OPTS="${CLAMD_OPTS}${CLAMD_LOG}" + if [ -n "${CLAMD_LOG}" ] ; then + if [ ! -f "${CLAMD_LOG}" ]; then + touch "${CLAMD_LOG}" + chown clamav:clamav "${CLAMD_LOG}" + fi + CLAMD_OPTS="${CLAMD_OPTS} -l ${CLAMD_LOG}" fi ebegin "Starting clamd" start-stop-daemon --start --quiet \