SOURCES: tmpwatch.cron (NEW) - /etc/tmpwatch support - the easy wa...
blues
blues at pld-linux.org
Wed Mar 22 23:14:07 CET 2006
Author: blues Date: Wed Mar 22 22:14:06 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- /etc/tmpwatch support - the easy way to add new directories for tmpwatch
from each spec
---- Files affected:
SOURCES:
tmpwatch.cron (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/tmpwatch.cron
diff -u /dev/null SOURCES/tmpwatch.cron:1.1
--- /dev/null Wed Mar 22 23:14:06 2006
+++ SOURCES/tmpwatch.cron Wed Mar 22 23:14:01 2006
@@ -0,0 +1,16 @@
+#!/bin/sh
+#########
+# Some defaults:
+if [ -f /etc/sysconfig/tmpwatch ]; then
+ . /etc/sysconfig/tmpwatch
+fi
+
+########
+for file in /etc/tmpwatch/*.conf; do
+ grep ^/ ${file} | while read line; do
+ TIME=`echo ${line} | awk '{ print $2 }'`
+ DIRECTORY=`echo ${line} | awk '{ print $1 }'`
+ /usr/sbin/tmpwatch ${TIME} ${DIRECTORY}
+ done
+done
+
================================================================
More information about the pld-cvs-commit
mailing list