You are not logged in.
Pages: 1
After initscripts update, my /tmp dir isn't cleared after every boot.
Last edited by mgmartins (2012-06-25 10:21:22)
Spanish Arch Linux user since 2009
Offline
Are you certain? Is it mounted as tmpfs?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I've /tmp as a root folder and not as a partition.
Spanish Arch Linux user since 2009
Offline
I've /tmp as a root folder and not as a partition.
So you've modified the default scripts and made tmp as a dir on a physical disk... Why would you expect it to clear on a reboot?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Since the new initscripts, Archlinux advices to mount /tmp on tmpfs
More info:
http://www.h-online.com/open/news/item/ … 99432.html
Offline
mgmartins wrote:I've /tmp as a root folder and not as a partition.
So you've modified the default scripts and made tmp as a dir on a physical disk... Why would you expect it to clear on a reboot?
If i am not mistaken, /tmp used to be cleared on every reboot, even before migration to tmpfs.
Offline
the behavior changed slightly: we now delete any files that have not been accessed in 10 days. The functionality can be tweaked by copying /usr/lib/tmpfiles.d/tmp.conf to /etc/tmpfiles.d/ and editing it there. To learn about the format check out "man tmpfiles.d".
If you wish you could call "/usr/bin/systemd-tmpfiles --clean" from a cronjob every day or so, and it will then delete all files older than 10 days as well (or whatever you configured).
Offline
Yes, I have the same issue. My tmp is no longer mounted by default in tmpfs. I have garbage in /tmp since 10 june (just the day after initscripts were upgraded to 2012.06.1-1).
EDIT: I just have tested another machine and indeed /tmp was not mounted as tmpfs (as I incorrectly believed)!. Well, time to do it...
Last edited by cgarcia (2012-06-18 21:31:49)
Offline
@cgarcia: the default fstab mounts /tmp as tmpfs, but if you overwrite that, we don't force it.
Offline
I have some other entries in fstab which I'm not sure about; I checked the latest fstab and it only has tmpfs; can anyone say if these entries are actually required?
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
Offline
I have some other entries in fstab which I'm not sure about; I checked the latest fstab and it only has tmpfs; can anyone say if these entries are actually required?
devpts /dev/pts devpts defaults 0 0 shm /dev/shm tmpfs nodev,nosuid 0 0
They are not needed. Only add them if you want to override the standard mount options we use in initsctipts/systemd.
Offline
the behavior changed slightly: we now delete any files that have not been accessed in 10 days. The functionality can be tweaked by copying /usr/lib/tmpfiles.d/tmp.conf to /etc/tmpfiles.d/ and editing it there. To learn about the format check out "man tmpfiles.d".
If you wish you could call "/usr/bin/systemd-tmpfiles --clean" from a cronjob every day or so, and it will then delete all files older than 10 days as well (or whatever you configured).
i'm not using any tmpfs because my install is very old and i don't like to worry about ram everytime i copy something to /tmp.
Now i've in /tmp a file from june, something isn't working?
Going to try tmp.conf ...
-edit
For some reason the access time of all of my files in /tmp is set to the time i boot the system, so it never get cleared.
Seems:
D /tmp 1777 root root
will mimic the old behaviour
Last edited by kokoko3k (2012-08-08 14:25:53)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Pages: 1