Disable whatever is cleaning /tmp

Rick Stevens ricks at alldigital.com
Thu Apr 24 23:39:27 UTC 2014


On 04/24/2014 04:24 PM, Michael Hennebry issued this missive:
> Perhaps a workaround is a cron job that runs every
> fifty minutes and touches every file under /tmp .

First, make sure the systemd stuff that cleans it is disabled:

	systemctl stop systemd-tmpfiles-clean.service
	systemctl disable systemd-tmpfiles-clean.service
	systemctl mask systemd-tmpfiles-clean.service

See if that has any affect. Also note that by default, /tmp is now a
tmpfs (RAMdisk) thing, so any info in /tmp will NOT survive a reboot.
To disable that and return /tmp to something reasonable and usable, do:

	systemctl disable tmp.mount
	systemctl mask tmp.mount

Reboot and verify that /tmp is either just a directory or that a normal
filesystem is mounted there.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     Squawk!  Pieces of Seven!  Pieces of Seven!  Parity Error!     -
----------------------------------------------------------------------


More information about the users mailing list