Hi, I think my bug report is invalid. But before doing a close I'd like to ask a small question.
I was going through bootclean.sh file to see how it worked.
This is what I think is the main part that does the cleanup
if [ "$TMPTIME" = 0 ]
then
TEXPR=""
DEXPR=""
else
TEXPR="-mtime +$TMPTIME -ctime +$TMPTIME -atime +$TMPTIME"
DEXPR="-mtime +$TMPTIME -ctime +$TMPTIME"
fi
EXCEPT='! -name .
! ( -path ./lost+found -uid 0 )
! ( -path ./quota.user -uid 0 )
! ( -path ./aquota.user -uid 0 )
! ( -path ./quota.group -uid 0 )
! ( -path ./aquota.group -uid 0 )
! ( -path ./.journal -uid 0 )
! ( -path ./.clean -uid 0 )
! ( -path './...security*' -uid 0 )'
mkflagfile /tmp/.clean || return 1
report_err()
{
if [ "$VERBOSE" = no ]
then
log_failure_msg "bootclean: Failure cleaning /tmp."
else
log_action_end_msg 1 "bootclean: Failure
cleaning /tmp"
fi
}
#
# First remove all old files...
# (Use xargs here so that only one additional process gets created)
#
find . -depth -xdev $TEXPR $EXCEPT ! -type d \
-print0 | xargs -0r rm -f -- \
|| { report_err ; return 1 ; }
Assuming a TMPCLEAN value of 3 days, I tried the following on my laptop:
geeKISSexy:/tmp# find . -depth -xdev -mtime +3 -ctime +3
./ksocket-rrs/secret-cookie
./zmann8cH1i
./plugins
./features
Where are there are many files/folders older than 3 days. I understand that
they aren't listed here because their access time would be lesser than 3
days.
My only question is is under what criteria is the access time for a
file/folder altered ? If I browse the /tmp folder using the Konqueror File
Manager, Is it going to alter the access time for the files/folders
under /tmp ?
Thanks,
Ritesh
On Wednesday 06 September 2006 18:00, you wrote:
> [Ritesh Raj Sarraf]
>
> > You can notice that there are many files which are older than 5
> > days, but they aren't cleaned.
>
> Are you expecting TMPTIME to have effect on an ongoing basis, aka to
> make sure /tmp/ only have files newer than 5 days old?
>
> The TMPTIME value only affect the behaviour during boot. If you want
> something that clean /tmp/ daily, please check out some of the
> packages to do that, for example tmpreaper. If the documentation for
> TMPTIME fail to make this clear, how can we change the text to make it
> clearer?
>
> If your problem is that the files are not cleaned during boot, please
> try to run 'sh -x /etc/init.d/bootclean' and submit the output here.
>
> Friendly,
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is
research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
pgpX3Ma5WOUpn.pgp
Description: PGP signature

