Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2010 11:59:02 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205329 - head/etc
Message-ID:  <201003191159.o2JBx2aC040554@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Mar 19 11:59:02 2010
New Revision: 205329
URL: http://svn.freebsd.org/changeset/base/205329

Log:
  Don't add the atrun-line to the crontab when MK_AT is set.
  
  This prevents spurious calls to sendmail every 5 minutes.
  
  MFC after:	1 week

Modified:
  head/etc/Makefile

Modified: head/etc/Makefile
==============================================================================
--- head/etc/Makefile	Fri Mar 19 11:14:37 2010	(r205328)
+++ head/etc/Makefile	Fri Mar 19 11:59:02 2010	(r205329)
@@ -161,6 +161,9 @@ distribution:
 		${BIN2} ${DESTDIR}/etc; \
 	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
 		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
+.if ${MK_AT} == "no"
+	sed -i "" -e '/atrun/d' ${DESTDIR}/etc/crontab
+.endif
 .if ${MK_TCSH} == "no"
 	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003191159.o2JBx2aC040554>