Adding systemd unit files for socket activation

- Support for multiples concurrent instances, templated on
  WAYLAND_DISPLAY
- Use standard input for the socket file descriptor (inetd style)
- Always use the socket provided by systemd with the systemd user
  service
- wayland-instance@.target is intended to be a special target a bit like
  graphical-session.target.
This commit is contained in:
Max Gautier 2022-01-15 17:25:59 +01:00
parent 88a0f7397c
commit 1783f69cbd
3 changed files with 37 additions and 0 deletions

5
foot-server@.socket Normal file
View file

@ -0,0 +1,5 @@
[Socket]
ListenStream=%t/foot-%i.sock
[Install]
WantedBy=wayland-instance@.target