Skip to content

Commit

Permalink
tmpfiles: remove old ICE and X11 sockets at boot (systemd#6979)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 4a1f92c)
  • Loading branch information
fcrozat authored and fbuihuu committed Oct 10, 2017
1 parent 1cdd944 commit d2b767a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tmpfiles.d/x11.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
# See tmpfiles.d(5) for details

# Make sure these are created by default so that nobody else can
d /tmp/.X11-unix 1777 root root 10d
d /tmp/.ICE-unix 1777 root root 10d
d /tmp/.XIM-unix 1777 root root 10d
d /tmp/.font-unix 1777 root root 10d
d /tmp/.Test-unix 1777 root root 10d
# or empty them at startup
D! /tmp/.X11-unix 1777 root root 10d
D! /tmp/.ICE-unix 1777 root root 10d
D! /tmp/.XIM-unix 1777 root root 10d
D! /tmp/.font-unix 1777 root root 10d
D! /tmp/.Test-unix 1777 root root 10d

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

0 comments on commit d2b767a

Please sign in to comment.