Skip to content

Commit 4a1f92c

Browse files
fcrozatpoettering
authored andcommitted
tmpfiles: remove old ICE and X11 sockets at boot (#6979)
tmpfiles: remove old ICE and X11 sockets at boot When not using tmpfs based /tmp, leftover sockets might prevent X startup. Ensure directory is clean at boot time.
1 parent 91277df commit 4a1f92c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎tmpfiles.d/x11.conf‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
# See tmpfiles.d(5) for details
99

1010
# Make sure these are created by default so that nobody else can
11-
d /tmp/.X11-unix 1777 root root 10d
12-
d /tmp/.ICE-unix 1777 root root 10d
13-
d /tmp/.XIM-unix 1777 root root 10d
14-
d /tmp/.font-unix 1777 root root 10d
15-
d /tmp/.Test-unix 1777 root root 10d
11+
# or empty them at startup
12+
D! /tmp/.X11-unix 1777 root root 10d
13+
D! /tmp/.ICE-unix 1777 root root 10d
14+
D! /tmp/.XIM-unix 1777 root root 10d
15+
D! /tmp/.font-unix 1777 root root 10d
16+
D! /tmp/.Test-unix 1777 root root 10d
1617

1718
# Unlink the X11 lock files
1819
r! /tmp/.X[0-9]*-lock

0 commit comments

Comments
 (0)