Mailinglist Archive: opensuse-factory (564 mails)
| < Previous | Next > |
Re: [opensuse-factory] [12.1] massive data loss in /var/tmp/
- From: Ruediger Meier <sweet_f_a@xxxxxx>
- Date: Tue, 6 Dec 2011 12:13:36 +0100
- Message-id: <201112061213.37233.sweet_f_a@gmx.de>
On Tuesday 06 December 2011, Karl Eichwalder wrote:
Note that /usr/lib/tmpfiles.d/*.conf
contains systemd's default config only (should not be edited).
Users can change it in
/etc/tmpfiles.d/*.conf
but AFAIR this direcectory does not exist per default yet.
see man tmpfiles.d
If possible I would fix it in 12.1 by adding /etc/tmpfiles.d/*
which does nothing else than avoiding conflicts between
/etc/sysconfig/cron and /usr/lib/tmpfiles.d/*.conf.
As said in 12.1 it has to be fixed.
In Factory I would simply drop the idea of having interchangable
sysvinit and systemd. Users should know that using systemd or sysvinit
results in completely different behavior.
By considering this statement packagers could use systemd features
without thinking about sysvinit. Playing around systemd should IMO not
affect sysvinit and vice versa.
For this particular case it would mean that using systemd should
use /etc/tmpfiles.d/*.conf and sysvinit uses /etc/sysconfig/cron only.
cu,
Rudi
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx
Ludwig Nussel <ludwig.nussel@xxxxxxx> writes:
Melchior FRANZ wrote:
Apparently, 12.1 has added /var/tmp/ to TMP_DIRS_TO_CLEAR in
/etc/sysconfig/cron. I was quite surprised when I found out today
that I've lost a few GB of data, which used to be safe there.
$ tail -2 /usr/lib/tmpfiles.d/tmp.conf
d /tmp 1777 root root 10d
d /var/tmp 1777 root root 30d
That tells systemd to clear files older than 10 resp 30 days in
those directories. systemd does not honor TMP_DIRS_TO_CLEAR.
I'm going to add this to the release notes:
https://bugzilla.novell.com/show_bug.cgi?id=735027.
Note that /usr/lib/tmpfiles.d/*.conf
contains systemd's default config only (should not be edited).
Users can change it in
/etc/tmpfiles.d/*.conf
but AFAIR this direcectory does not exist per default yet.
see man tmpfiles.d
The behavior per se is ok, but in the update case, when it does not
honor old settings, I consider it as a bug. Are there plans to fix
this?
And, of course, it would have been a bug, if default sysv/sysconfig
and systemd related settings would differ...
If possible I would fix it in 12.1 by adding /etc/tmpfiles.d/*
which does nothing else than avoiding conflicts between
/etc/sysconfig/cron and /usr/lib/tmpfiles.d/*.conf.
Do we plan to remove
these variables from /etc/sysconfig/cron or will we propagate the
values from sysconfig to /usr/lib/tmpfiles.d/tmp.conf?
As said in 12.1 it has to be fixed.
In Factory I would simply drop the idea of having interchangable
sysvinit and systemd. Users should know that using systemd or sysvinit
results in completely different behavior.
By considering this statement packagers could use systemd features
without thinking about sysvinit. Playing around systemd should IMO not
affect sysvinit and vice versa.
For this particular case it would mean that using systemd should
use /etc/tmpfiles.d/*.conf and sysvinit uses /etc/sysconfig/cron only.
cu,
Rudi
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx
| < Previous | Next > |