1 |
On Monday 05 January 2009 11:58:44 Kaushal Shriyan wrote: |
2 |
> Hi |
3 |
> |
4 |
> when i rebooted Gentoo Linux Server, the /tmp folders got cleaned up. |
5 |
> Is there a way i can prevent it from cleaning it up. |
6 |
|
7 |
WHY? |
8 |
|
9 |
The correct usage of /tmp per the standard is: |
10 |
|
11 |
"Files in this directory must not be expected to persist past successive |
12 |
invocations of a command" |
13 |
|
14 |
never mind persisting over reboots... |
15 |
|
16 |
> Also I know that the /tmp directory should not be used for storing |
17 |
> important files. |
18 |
|
19 |
grep is your friend: |
20 |
|
21 |
alan@nazgul ~ $ grep -r tmp /etc/conf.d/* |
22 |
/etc/conf.d/bootmisc:# List of /tmp directories we should clean up |
23 |
/etc/conf.d/bootmisc:wipe_tmp_dirs="/tmp" |
24 |
/etc/conf.d/bootmisc:# Should we wipe the tmp paths completely or just |
25 |
selectively remove known |
26 |
/etc/conf.d/bootmisc:wipe_tmp="YES" |
27 |
/etc/conf.d/dmcrypt:##/tmp with regular keyfile |
28 |
/etc/conf.d/dmcrypt:#target=crypt-tmp |
29 |
/etc/conf.d/dmcrypt:#key='/full/path/to/tmpkey' |
30 |
|
31 |
|
32 |
so it's /etc/conf.d/bootmisc |
33 |
|
34 |
-- |
35 |
alan dot mckinnon at gmail dot com |