/[gentoo-x86]/sys-process/dcron/files/dcron-4.4-prune.patch
Gentoo

Contents of /sys-process/dcron/files/dcron-4.4-prune.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Oct 26 07:07:10 2010 UTC (3 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Version bump #318703 by Sebastian Pipping.

(Portage version: 2.2_rc96/cvs/Linux x86_64)

1 From 7d5633e67db8160b77df5e14bdcfb8cd579a9003 Mon Sep 17 00:00:00 2001
2 From: Mike Frysinger <vapier@gentoo.org>
3 Date: Tue, 26 Oct 2010 02:11:12 -0400
4 Subject: [PATCH] prune-cronstamps: reformat for cron.d usage
5
6 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
7 ---
8 extra/prune-cronstamps | 5 ++---
9 1 files changed, 2 insertions(+), 3 deletions(-)
10 mode change 100755 => 100644 extra/prune-cronstamps
11
12 diff --git a/extra/prune-cronstamps b/extra/prune-cronstamps
13 old mode 100755
14 new mode 100644
15 index c2973a5..9ce82a0
16 --- a/extra/prune-cronstamps
17 +++ b/extra/prune-cronstamps
18 @@ -1,4 +1,4 @@
19 -#!/bin/sh
20 +# /etc/cron.d/prune-cronstamps
21
22 # Prunes any files in /var/spool/cron/cronstamps that haven't been used in ninety days.
23 # We check that both mtime and atime are greater than this:
24 @@ -10,5 +10,4 @@
25 # and so its atime won't be updated. At least its mtime will be updated when
26 # it's modified.
27
28 -find /var/spool/cron/cronstamps -mtime +90 -atime +90 -delete
29 -
30 +@weekly ID=prune-cronstamps find /var/spool/cron/cronstamps -mtime +90 -atime +90 -delete
31 --
32 1.7.3.1

  ViewVC Help
Powered by ViewVC 1.1.20