Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #170820

Re: How to prevent /tmp files from being deleted at reboot

From Wilko Fokken <wfokken@web.de>
Newsgroups linux.debian.user
Subject Re: How to prevent /tmp files from being deleted at reboot
Date 2016-08-07 21:00 +0200
Message-ID <s3BsJ-7sw-3@gated-at.bofh.it> (permalink)
References <rT2cW-4IP-3@gated-at.bofh.it> <rT4op-5Za-3@gated-at.bofh.it> <rT7Pk-8cK-21@gated-at.bofh.it> <rTn7H-1fS-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jul 10, 2016 at 03:32:12PM +0200, Linux-Fan wrote:
> [Sat, 9 Jul 2016 23:16:29 +0200] MI <mi.lists.debian@alma.ch> wrote:

> > > IMO: If you have a program that relies on files or directories
> > > in /tmp being persistent, then that program is buggy, not Debian.
> > 
> > It's not a program. It's just me, mostly while setting up and testing
> > a fresh system, which may need frequent reboots.
> 
> ...but may I suggest you to use `/var/tmp` as a workaround?
> `/var/tmp` is a persistent alternative to `/tmp`.
> 
> HTH
> Linux-Fan


I set the following link (in single user mode):


– – – – – – – – – – –

rm -rf /tmp

chmod 1777 /var/TMP

ln -s /var/TMP /tmp



Additionly I altered /etc/default/rcS:

# TMPTIME=0

TMPTIME=8

– – – – – – – – – – –

So far, my system seems to be running smoothly; (with MANY reboots a day
as I am trying out a cohabitation of my favourite old 'icewm' with Debians
chosen xfce4-wm.)

My oldest files and directories in '/tmp' date from july 31.

(Hoping my answer won't be redundant, as only skimmed my mails in a rush.)


Regards Wilko

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Re: How to prevent /tmp files from being deleted at reboot Wilko Fokken <wfokken@web.de> - 2016-08-07 21:00 +0200

csiph-web