[SOLVED] Temp files are automatically deleted

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[SOLVED] Temp files are automatically deleted

Postby nbd » Sun Sep 13, 2015 10:08 pm

I noticed that files in the /tmp folder are regularly disappearing after 10 days since their creation. I presume that they are automatically deleted by the system. Some research in the Internet showed that this can happen if the TMPTIME variable is set in /etc/default/rcS to some value other than 0. By on my system there is no /etc/default/rcS. How automatical deletion of temporary files can be stopped?
Last edited by nbd on Sun Sep 13, 2015 11:41 pm, edited 1 time in total.
nbd
 
Posts: 14
Joined: Sun Sep 13, 2015 9:55 pm

Re: Temp files are automatically deleted

Postby moonman » Sun Sep 13, 2015 10:35 pm

/tmp is tmpfs so is in ram. Everytime you reboot, it gets deleted
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Temp files are automatically deleted

Postby nbd » Sun Sep 13, 2015 11:24 pm

moonman,

the matter is that they are deleted without reboot. I thought initially that that was a random glitch, but when temp files kept disappearing, it turned out that they are got deleted exactly on the 10-th day after their creation. On some older distros with SysV Init there was a cron daemon tmpwatch which performed automatic deletion of temp files based on the TMPTIME value. Is there on ArchArm some service like that daemon?
nbd
 
Posts: 14
Joined: Sun Sep 13, 2015 9:55 pm

Re: Temp files are automatically deleted

Postby moonman » Sun Sep 13, 2015 11:35 pm

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Temp files are automatically deleted

Postby nbd » Sun Sep 13, 2015 11:40 pm

Seems like the solution. Thanks!
nbd
 
Posts: 14
Joined: Sun Sep 13, 2015 9:55 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 10 guests