Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #274965 > unrolled thread
| Started by | Erwan David <erwan@rail.eu.org> |
|---|---|
| First post | 2024-11-28 17:20 +0100 |
| Last post | 2024-11-29 04:00 +0100 |
| Articles | 4 — 4 participants |
Back to article view | Back to linux.debian.user
Debugging systemd-tmpfiles Erwan David <erwan@rail.eu.org> - 2024-11-28 17:20 +0100
Re: Debugging systemd-tmpfiles Greg Wooledge <greg@wooledge.org> - 2024-11-28 18:00 +0100
Re: Debugging systemd-tmpfiles jman <debian-user@city17.xyz> - 2024-11-28 20:50 +0100
Re: Debugging systemd-tmpfiles Max Nikulin <manikulin@gmail.com> - 2024-11-29 04:00 +0100
| From | Erwan David <erwan@rail.eu.org> |
|---|---|
| Date | 2024-11-28 17:20 +0100 |
| Subject | Debugging systemd-tmpfiles |
| Message-ID | <JNPpf-cfQ1-3@gated-at.bofh.it> |
I have setup systemd-tmpfiles in user mode as follows : systemd-tmpfiles --user --cat-config # /home/erwan/.config/user-tmpfiles.d/perso.conf d /home/erwan/tmp 0755 erwan erwan 60d d /home/erwan/Downloads 0755 erwan erwan 90d However, those directories are not cleaned. What should I check ? -- Erwan David
[toc] | [next] | [standalone]
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Date | 2024-11-28 18:00 +0100 |
| Message-ID | <JNQ1X-cg3b-5@gated-at.bofh.it> |
| In reply to | #274965 |
On Thu, Nov 28, 2024 at 16:57:37 +0100, Erwan David wrote:
> I have setup systemd-tmpfiles in user mode as follows :
>
> systemd-tmpfiles --user --cat-config
> # /home/erwan/.config/user-tmpfiles.d/perso.conf
> d /home/erwan/tmp 0755 erwan erwan 60d
> d /home/erwan/Downloads 0755 erwan erwan 90d
>
> However, those directories are not cleaned.
>
> What should I check ?
Well, this is not entirely clear to me:
DESCRIPTION
systemd-tmpfiles creates, deletes, and cleans up files and directories,
using the configuration file format and location specified in
tmpfiles.d(5). It must be invoked with one or more options --create,
--remove, and --clean, to select the respective subset of operations.
System services (systemd-tmpfiles-setup.service,
systemd-tmpfiles-setup-dev.service, systemd-tmpfiles-clean.service)
invoke systemd-tmpfiles to create system files and to perform system
wide cleanup. [...]
Users may use this to create and
clean up files under their control, but the system instance performs
global cleanup and is not influenced by user configuration. Note that
this means a time-based cleanup configured in the system instance, such
as the one typically configured for /tmp/, will thus also affect files
created by the user instance if they are placed in /tmp/, even if the
user instance's time-based cleanup is turned off.
Do you have a --user service with "clean" in its name? Is it running?
Does it have anything journalled?
I wonder who thinks this is actually an improvement over dropping a
find command in your crontab. One (admittedly complex) line and you're
done versus trying to decipher all of *that*? I know which one I'd
go with.
[toc] | [prev] | [next] | [standalone]
| From | jman <debian-user@city17.xyz> |
|---|---|
| Date | 2024-11-28 20:50 +0100 |
| Message-ID | <JNSGt-chGu-3@gated-at.bofh.it> |
| In reply to | #274965 |
Erwan David <erwan@rail.eu.org> writes: > However, those directories are not cleaned. > > What should I check ? I've not yet used systemd-tmpfiles but the first thing that comes to my mind, if I had to use it, would to be very careful and mindful of the "purge" command, which can have surprising effects: https://www.phoronix.com/news/systemd-tmpfiles-purge-drama Cheers,
[toc] | [prev] | [next] | [standalone]
| From | Max Nikulin <manikulin@gmail.com> |
|---|---|
| Date | 2024-11-29 04:00 +0100 |
| Message-ID | <JNZoB-clGz-1@gated-at.bofh.it> |
| In reply to | #274971 |
On 29/11/2024 02:24, jman wrote:
> Erwan David writes:
>> However, those directories are not cleaned.
>>
>> What should I check ?
>
> I've not yet used systemd-tmpfiles but the first thing that comes to my
> mind, if I had to use it, would to be very careful and mindful of the
> "purge" command, which can have surprising effects:
> https://www.phoronix.com/news/systemd-tmpfiles-purge-drama
--purge added after bookworm release.
systemctl --user status systemd-tmpfiles-clean.timer
○ systemd-tmpfiles-clean.timer - Daily Cleanup of User's Temporary
Directories
Loaded: loaded
(/usr/lib/systemd/user/systemd-tmpfiles-clean.timer; disabled; preset:
enabled)
Active: inactive (dead)
Trigger: n/a
Triggers: ● systemd-tmpfiles-clean.service
Docs: man:tmpfiles.d(5)
man:systemd-tmpfiles(8)
It seems you need to explicitly enable it. You may have a look into the
Debian bug tracker, the Debian git repository for the package, dev
mailing list archive to figure out if the timer is disabled intentionally.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web