Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 329244 Details for
Bug 440802
new sec-policy/selinux-makewhatis package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/cron.daily/tmpwatch
file_440802.txt (text/plain), 1.63 KB, created by
Alex Brandt (RETIRED)
on 2012-11-11 16:42:02 UTC
(
hide
)
Description:
/etc/cron.daily/tmpwatch
Filename:
MIME Type:
Creator:
Alex Brandt (RETIRED)
Created:
2012-11-11 16:42:02 UTC
Size:
1.63 KB
patch
obsolete
>#!/bin/sh ># $Header: /var/cvsroot/gentoo-x86/app-admin/tmpwatch/files/tmpwatch.cron,v 1.4 2007/01/27 16:51:37 masterdriverz Exp $ ># vim: ft=sh > ># This cron script contains several (commented out) examples. You may use ># them as is, by uncommenting them, or modify them to suit your needs. Read ># tmpwatch(8) for more information on tmpwatch parameters. > >### Variables ### > >TMPWATCH="/usr/sbin/tmpwatch" >PORTAGE_TMPDIR="$(portageq envvar PORTAGE_TMPDIR)/portage" >PORTAGE_LOGDIR="$(portageq envvar PORT_LOGDIR)" >DISTDIR="$(portageq distdir)" > >### EXAMPLES ### > ># NOTE: if you have noatime in /etc/fstab for any partitions you plan on ># running tmpwatch on, you should obviously change any of the examples that ># use atime (-u|--atime). Those that don't specify anything, default to ># atime. > ># NOTE2: the time value is in HOURS! > ># Delete everything in /tmp that haven't been accessed in a week (>=168 hrs). > >if [[ -d /tmp ]]; then > ${TMPWATCH} --atime 168 /tmp >fi > ># Delete everything in PORTAGE_TMPDIR that hasn't been modified in 2 weeks. > >if [[ -d ${PORTAGE_TMPDIR:-/var/tmp/portage} && -z $(/usr/bin/pgrep emerge) ]]; then > ${TMPWATCH} --mtime --all 336 ${PORTAGE_TMPDIR:-/var/tmp/portage} >fi > ># Delete everything in DISTDIR that hasn't been accessed in 6 months (going ># by 30 day months) > >if [[ -d ${DISTDIR:-/usr/portage/distfiles} ]]; then > ${TMPWATCH} --atime --fuser 4320 ${DISTDIR:-/usr/portage/distfiles} >fi > ># Delete everything in PORTAGE_LOGDIR that hasn't been accessed in 4 weeks > >if [[ -d ${PORTAGE_LOGDIR:-/var/log/portage} ]]; then > ${TMPWATCH} --atime 772 ${PORTAGE_LOGDIR:-/var/log/portage} >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 440802
:
329120
|
329122
| 329244 |
329466