From 1783f69cbd6291a30b9ab1f4daef9159b5dadd85 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Sat, 15 Jan 2022 17:25:59 +0100 Subject: 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. --- foot-server@.service.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 foot-server@.service.in (limited to 'foot-server@.service.in') diff --git a/foot-server@.service.in b/foot-server@.service.in new file mode 100644 index 00000000..81c13bb4 --- /dev/null +++ b/foot-server@.service.in @@ -0,0 +1,13 @@ +[Service] +ExecStart=@bindir@/foot --server=0 +Environment=WAYLAND_DISPLAY=%i +NonBlocking=true +StandardInput=socket + +[Unit] +Requires=%N.socket +Description=Foot terminal server mode for WAYLAND_DISPLAY=%i +Documentation=man:foot(1) + +[Install] +WantedBy=wayland-instance@.target -- cgit v1.3