We need a removal rule for systems where /tmp is not on tmpfs, so that if they crash, stale sockets will be removed during boot. OTOH, at runtime, those lock files must never be removed. But since the 'r!' rule uses '!', it only applies during boot. With the rule inactive, the usual time-based cleanup for /tmp/ was also applied to those files, causing them to be removed after 10 days. Fixes #35182.
20 lines
687 B
Plaintext
20 lines
687 B
Plaintext
# 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.
|
|
|
|
# Make sure these are created by default so that nobody else can
|
|
# or empty them at startup
|
|
D /tmp/.X11-unix 1777 root root 1h
|
|
D /tmp/.ICE-unix 1777 root root 1h
|
|
D /tmp/.XIM-unix 1777 root root 1h
|
|
D /tmp/.font-unix 1777 root root 1h
|
|
|
|
# Unlink the X11 lock files at boot, but exclude them from time-based cleanup later
|
|
r! /tmp/.X[0-9]*-lock
|
|
x /tmp/.X[0-9]*-lock
|