Prevent /tmp automatic deletion 13 April 2023, 01:41:38 Ho do we prevent /tmp contents from being automatically deleted here just like here:https://www.thegeekdiary.com/how-to-disable-auto-deletion-of-the-files-in-tmp-and-var-tmp-directories-in-centos-rhel-56/?
Re: Prevent /tmp automatic deletion Reply #1 – 13 April 2023, 02:59:38 I'm pretty sure all init systems mount /tmp as a tmpfs. This is in RAM so anything that is there will be deleted after a reboot. The real answer here is simply don't store permanent data in /tmp (I mean it's in the name). That's not what that directory is for.That article seems to indicate automatic deletion of files in that directory via a cron job while the system is running. That's not a thing in Artix so it doesn't apply.
Re: Prevent /tmp automatic deletion Reply #2 – 13 April 2023, 03:19:19 Quote from: Dudemanguy – on 13 April 2023, 02:59:38I'm pretty sure all init systems mount /tmp as a tmpfs. This is in RAM so anything that is there will be deleted after a reboot. The real answer here is simply don't store permanent data in /tmp (I mean it's in the name). That's not what that directory is for.That article seems to indicate automatic deletion of files in that directory via a cron job while the system is running. That's not a thing in Artix so it doesn't apply.proof: ?here Artix /tmp is just simple /tmpMany linux else do it, not only red hat, also how prevent /tmp contents just like here https://serverfault.com/questions/147512/how-to-prevent-linux-from-deleting-temporary-files-on-shutdown'
Re: Prevent /tmp automatic deletion Reply #3 – 13 April 2023, 03:44:13 Post the output fromCode: [Select]mount |grep /tmpandCode: [Select]cat /etc/fstabYour referring to links that are very old and about other distros. They are not relevant.Which init are you using?
Re: Prevent /tmp automatic deletion Reply #4 – 13 April 2023, 05:12:24 Quote from: gripped – on 13 April 2023, 03:44:13Post the output fromCode: [Select]mount |grep /tmpandCode: [Select]cat /etc/fstabYour referring to links that are very old and about other distros. They are not relevant.Which init are you using?openRC
Re: Prevent /tmp automatic deletion Reply #5 – 13 April 2023, 10:30:42 You didn't bother providing the output I asked for so I'm not promising this will work.But in: /etc/conf.d/bootmiscCode: [Select]wipe_tmp="NO"