3

Before the advent of systemd, my /tmp was cleaned when and only when I rebooted my machine. I was happy.

Now systemd has changed this decades-old default so that my /tmp is cleaned every 24 hours, it seems. I am not happy.

How to get the old please-do-not-touch-my-/tmp-except-when-rebooting behavior with systemd?

I've seen related Q&A's here, but the answers are all too complicated for me:

2
  • Which ones are related? Perhaps we can edit one of those answers to make it clearer. Commented Mar 21, 2019 at 10:06
  • Even if the answers are too complicated it would be good to edit the question an add links to these answers. Commented Mar 21, 2019 at 10:08

1 Answer 1

3

put this into /etc/rc.local:

# disable the daily cleaning systemctl disable systemd-tmpfiles-clean.timer # make sure /tmp is cleaned now (might be superfluous, but what the heck?) systemctl start systemd-tmpfiles-clean.service 

and enable rc.local:

 systemctl start rc-local.service 
1
  • Thank you very much; this seems to work just nicely. Commented Mar 30, 2019 at 11:10

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.