Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2013 08:56:09 +0000 (UTC)
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254829 - head/usr.sbin/periodic
Message-ID:  <201308250856.r7P8u9tw054187@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jlh
Date: Sun Aug 25 08:56:09 2013
New Revision: 254829
URL: http://svnweb.freebsd.org/changeset/base/254829

Log:
  Export a PERIODIC environment variable from periodic(8).  This will
  allow periodic security scripts to know if they have been called in
  a daily or a weekly context.

Modified:
  head/usr.sbin/periodic/periodic.sh

Modified: head/usr.sbin/periodic/periodic.sh
==============================================================================
--- head/usr.sbin/periodic/periodic.sh	Sun Aug 25 08:42:50 2013	(r254828)
+++ head/usr.sbin/periodic/periodic.sh	Sun Aug 25 08:56:09 2013	(r254829)
@@ -76,6 +76,7 @@ shift
 arg=$1
 
 tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
+export PERIODIC="$arg${PERIODIC:+ }${PERIODIC}"
 
 # Execute each executable file in the directory list.  If the x bit is not
 # set, assume the user didn't really want us to muck with it (it's a



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