summaryrefslogtreecommitdiff
blob: 3a8ff950e2cccd05e5d62d149bd52211fa49124b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 7d5633e67db8160b77df5e14bdcfb8cd579a9003 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 26 Oct 2010 02:11:12 -0400
Subject: [PATCH] prune-cronstamps: reformat for cron.d usage

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 extra/prune-cronstamps |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
 mode change 100755 => 100644 extra/prune-cronstamps

diff --git a/extra/prune-cronstamps b/extra/prune-cronstamps
old mode 100755
new mode 100644
index c2973a5..9ce82a0
--- a/extra/prune-cronstamps
+++ b/extra/prune-cronstamps
@@ -1,4 +1,4 @@
-#!/bin/sh
+# /etc/cron.d/prune-cronstamps
 
 # Prunes any files in /var/spool/cron/cronstamps that haven't been used in ninety days.
 # We check that both mtime and atime are greater than this:
@@ -10,5 +10,4 @@
 #	and so its atime won't be updated. At least its mtime will be updated when
 #	it's modified.
 
-find /var/spool/cron/cronstamps -mtime +90 -atime +90 -delete
-
+@weekly ID=prune-cronstamps find /var/spool/cron/cronstamps -mtime +90 -atime +90 -delete
-- 
1.7.3.1