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

2016-08-07 Thread Wilko Fokken
On Sun, Jul 10, 2016 at 03:32:12PM +0200, Linux-Fan wrote: > [Sat, 9 Jul 2016 23:16:29 +0200] MI 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 wh

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

2016-08-06 Thread Jonathan de Boyne Pollard
Jonathan de Boyne Pollard: Untrue. The OpenRC people have had a tmpfiles utility since 2012. Michael Biebl: I didn't know that. Thanks for the info. Can you post some more details? Where can I find the sources for that? Is it packaged for Debian? Here's the Gentoo OpenRC repository: * http

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

2016-08-05 Thread Michael Biebl
Am 05.08.2016 um 09:04 schrieb Jonathan de Boyne Pollard: > Michael Biebl: > Strictly speaking, the tmpfiles.d mechanism is not tied > to a particular init. It's just that no-one has provided an > implementation for non-systemd. > > Untrue. The OpenRC people have had a tmpfiles utility since 2012.

How to prevent /tmp files from being deleted at reboot

2016-08-05 Thread Jonathan de Boyne Pollard
Michael Biebl: There are 3 kind of "timestamps": Access - the last time the file was read Modify - the last time the file was modified (content has been modified) Change - the last time meta data of the file was changed (e.g. permissions) Not on all flavours of Debian. Debian FreeBSD has 4.

How to prevent /tmp files from being deleted at reboot

2016-08-05 Thread Jonathan de Boyne Pollard
Michael Biebl: > Strictly speaking, the tmpfiles.d mechanism is not tied to a particular init. It's just that no-one has provided an implementation for non-systemd. Untrue. The OpenRC people have had a tmpfiles utility since 2012.

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

2016-07-28 Thread Josh Triplett
Michael Biebl wrote: > Now to your issue. You said you wanted time based clean-up (remove files > older then 30 days) but *not* remove them on boot. > > You've created a file /etc/tmpfiles.d/tmp.conf which overrides the > default that is shipped in /usr/lib/tmpfiles.d/tmp.conf > So far so good. Wh

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

2016-07-16 Thread Michael Biebl
Am 16.07.2016 um 17:07 schrieb D. R. Evans: > Michael Biebl wrote on 07/16/2016 07:25 AM: > >> >> tmpreaper is no longer needed or recommended under systemd. >> systemd-tmpfiles already does time-based cleanup as builtin feature. >> > > Thank you for that information (which was news to me), but i

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

2016-07-16 Thread MI
Yes, it looks like it's the ctime which prevents the deletion, and "d /tmp ... xxd" is indeed the option which is the closest to the old behaviour. I guess I will have to get used to the "systemd POV" ... Thanks all for your help MI Original Message Am 16.07.2016 um 16:3

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

2016-07-16 Thread D. R. Evans
Michael Biebl wrote on 07/16/2016 07:25 AM: > > tmpreaper is no longer needed or recommended under systemd. > systemd-tmpfiles already does time-based cleanup as builtin feature. > Thank you for that information (which was news to me), but in any case I would far rather rely on a separate progr

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

2016-07-16 Thread Michael Biebl
Am 16.07.2016 um 16:30 schrieb Mark Fletcher: > > > On Sat, Jul 16, 2016 at 11:28 PM MI > wrote: > > > > > Please post the output of > > stat /tmp/TOOOLD.txt > > # stat /tmp/TOOOLD.txt >File: ‘/tmp/TOOOLD.txt’ >Size: 9 B

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

2016-07-16 Thread Mark Fletcher
On Sat, Jul 16, 2016 at 11:28 PM MI wrote: > > > > Please post the output of > > stat /tmp/TOOOLD.txt > > # stat /tmp/TOOOLD.txt >File: ‘/tmp/TOOOLD.txt’ >Size: 9 Blocks: 8 IO Block: 4096 regular file > Device: 805h/2053dInode: 14 Links: 1 > Access: (0664

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

2016-07-16 Thread MI
Please post the output of stat /tmp/TOOOLD.txt # stat /tmp/TOOOLD.txt File: ‘/tmp/TOOOLD.txt’ Size: 9 Blocks: 8 IO Block: 4096 regular file Device: 805h/2053dInode: 14 Links: 1 Access: (0664/-rw-rw-r--) Uid: (0/root) Gid: (0/root) Acces

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

2016-07-16 Thread Michael Biebl
Am 16.07.2016 um 16:06 schrieb MI: > - "d /tmp/ 1777 root root 30d" > >Nothing is deleted at boot or when running "systemd-tmpfiles --create > --remove >--clean" without a reboot. > ># grep ' /tmp' /etc/tmpfiles.d/tmp.conf >d /tmp 1777 root root 30d >x /tmp/systemd-private-%b

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

2016-07-16 Thread MI
Thank you for looking into this. Now to your issue. You said you wanted time based clean-up (remove files older then 30 days) but *not* remove them on boot. In fact, cleanup on boot would be fine. However, "cleanup" should only cleanup files older than the age argument. I tried these: - Em

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

2016-07-16 Thread Michael Biebl
Am 16.07.2016 um 15:07 schrieb D. R. Evans: > MI wrote on 07/16/2016 06:53 AM: > >> >> That is, it works as an equivalent to TMPTIME=-1. But I do want to cleanup >> /tmp, just >> with some value of TMPTIME > 0. > > That's what tmpreaper is for. tmpreaper is no longer needed or recommended unde

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

2016-07-16 Thread Michael Biebl
Am 16.07.2016 um 14:53 schrieb MI: > > OK, so you have an empty /etc/tmpfiles.d/tmp.conf which indeed works to > completely avoid cleaning up /tmp at reboot. > > That is, it works as an equivalent to TMPTIME=-1. But I do want to > cleanup /tmp, just with some value of TMPTIME > 0. > > Anyway, th

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

2016-07-16 Thread D. R. Evans
MI wrote on 07/16/2016 06:53 AM: > > That is, it works as an equivalent to TMPTIME=-1. But I do want to cleanup > /tmp, just > with some value of TMPTIME > 0. That's what tmpreaper is for. Doc -- Web: http://www.sff.net/people/N7DR signature.asc Description: OpenPGP digital signature

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

2016-07-16 Thread MI
OK, so you have an empty /etc/tmpfiles.d/tmp.conf which indeed works to completely avoid cleaning up /tmp at reboot. That is, it works as an equivalent to TMPTIME=-1. But I do want to cleanup /tmp, just with some value of TMPTIME > 0. Anyway, thanks. It at least confirms that the /etc/tmpfi

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

2016-07-12 Thread Michael Biebl
Am 12.07.2016 um 17:32 schrieb Michael Biebl: > So, what you copied from the bug report was simply not what you were > looking at. looking for, obviously. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? signature.asc Description:

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

2016-07-12 Thread Michael Biebl
Am 11.07.2016 um 15:22 schrieb MI: > Hi, > > Attached is the output. (BTW, findmnt is cool; I didn't know about it). > Thank you. I just wanted to be sure that you weren't using tmpfs-for-/tmp by default, which isn't the case. Now to your issue. You said you wanted time based clean-up (remove f

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

2016-07-11 Thread D. R. Evans
MI wrote on 07/11/2016 09:44 AM: > > Sounds promising! > > Would you share what you have in /etc/tmpfiles.d/ ? From what I had read, > that is > where systemd would read it's tmp settings, and where it would have migrated > settings > from rcS on upgades. > [HN:tmpfiles.d] ls -al total 20 d

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

2016-07-11 Thread MI
Sounds promising! Would you share what you have in /etc/tmpfiles.d/ ? From what I had read, that is where systemd would read it's tmp settings, and where it would have migrated settings from rcS on upgades. You do have a "normal" Debian Jessie with systemd, right? If you uninstalled systemd

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

2016-07-11 Thread D. R. Evans
MI wrote on 07/10/2016 03:04 PM: > That was how it has "always" worked before. But now systemd ignores TMPTIME, > and also > seems to ignore it's own "age" option, unless I'm not using it right. > I am running Jessie, and have TMPTIME=-1 in /etc/default/rcS and it still works fine for me. D

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

2016-07-11 Thread MI
Hi, Attached is the output. (BTW, findmnt is cool; I didn't know about it). Thanks for any insight, MI # findmnt TARGET SOURCEFSTYPE OPTIONS //dev/sda1 ext4 rw,relatime,errors=remount-ro,data=ordered ├─/sys

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

2016-07-11 Thread Michael Biebl
Hi Am 09.07.2016 um 17:03 schrieb MI: > In Debian Jessie, systemd ignores the TMPTIME variable in > /etc/default/rcS and just blindly deletes everything on every reboot. > > A bug has been filed about it: "#795269 TMPTIME not honored anymore" > ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug

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

2016-07-10 Thread MI
That was how it has "always" worked before. But now systemd ignores TMPTIME, and also seems to ignore it's own "age" option, unless I'm not using it right. Original Message On a testing/sid system with sysvinit-core, the script /etc/init.d/mountall-bootclean.sh (linked to /et

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

2016-07-10 Thread Jörg-Volker Peetz
On a testing/sid system with sysvinit-core, the script /etc/init.d/mountall-bootclean.sh (linked to /etc/rcS.d/) calls clean_tmp via clean_all from /lib/init/bootclean.sh . In this function it says "Don't clean remaining files if TMPTIME is negative or 'infinite'" Therefore, to never cleanup set

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

2016-07-10 Thread Linux-Fan
[Sat, 9 Jul 2016 23:16:29 +0200] MI wrote: [...] Sorry, I can not help with the configuration issue... :( > PS: > > 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

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

2016-07-09 Thread MI
/tmp is most likely a tmpfs, a filesystem in RAM which will vanish (and all files and directories in it) as soon as the computer is rebooted. No, it's a dedicated partition on disk. But /tmp being wiped on (re)boot has been the norm and case for UNIX-based operating systems since nearly fore

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

2016-07-09 Thread Sven Hartge
MI wrote: > In Debian Jessie, systemd ignores the TMPTIME variable in /etc/default/rcS > and just > blindly deletes everything on every reboot. > A bug has been filed about it: "#795269 TMPTIME not honored anymore" > ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795269 ) > But I tried

How to prevent /tmp files from being deleted at reboot

2016-07-09 Thread MI
In Debian Jessie, systemd ignores the TMPTIME variable in /etc/default/rcS and just blindly deletes everything on every reboot. A bug has been filed about it: "#795269 TMPTIME not honored anymore" ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795269 ) But I tried the suggested solution,