Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

systemd and /tmp

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
Message
Author
User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 8816
Joined: Sun Dec 16, 2007 1:17 pm

systemd and /tmp

#1 Post by dolphin_oracle » Sat May 26, 2018 7:56 pm

to those of you that might be running mx linux in "systemd" mode, you may find that your /tmp directory is not emptying quite as often as you might like. this causes some odd behavior for a couple of apps, but the fix is easy.

1. copy tmp.conf from /usr/lib/tmpfiles.d to /etc/tmpfiles.d

Code: Select all

sudo cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf
2. add a couple of lines to the /etc/tmpfiles.d/tmp.conf to make your config look like this:

Code: Select all

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# See tmpfiles.d(5) for details

# Clear tmp directories separately, to make them easier to override
D /var/tmp 1777 root root -
D /tmp 1777 root root -
#q /var/tmp 1777 root root 30d

# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp
for some reason, by default, systemd doesn't empty our /tmp folder like happens with our sysVinit configuration, leading to a never ending buildup of pulseaudio checkfiles, among other things. you are only impacted if you are using systemd for boot/init.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21945
Joined: Wed Jul 19, 2006 6:13 am

Re: systemd and /tmp

#2 Post by Jerry3904 » Sat May 26, 2018 8:01 pm

Good one to add to the Wiki, doing it now.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

Post Reply

Return to “Tips&Tricks”