From 8a9f146d683bb2be365ba1879b65ae1ff36b56d4 Mon Sep 17 00:00:00 2001 From: Thijs Wouters Date: Sun, 21 Nov 2021 23:33:38 +0100 Subject: [PATCH] Add install instructions for the daemon in systemd (#193) --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index a40d001..2441369 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,26 @@ Install the Firefox extension (from within Firefox) and companion bridge applica On Linux platforms, it may be necessary to [configure local hostname resolution](https://wiki.archlinux.org/index.php/avahi#Hostname_resolution). +### Installing as a systemd deamon + +1. Create fx_cast user: `sudo useradd --system fx_cast` +2. Create service file in /etc/systemd/fx_cast.service: +``` +[Unit] + +Description=fx_cast daemon + +[Service] + +User=fx_cast +ExecStart=/opt/fx_cast/fx_cast_bridge -d +Restart=always + +[Install] +WantedBy=multi-user.target +``` +3. Enable the service: `sudo systemd enable fx_cast` + ### Package managers * #### Arch Linux (AUR) - https://aur.archlinux.org/packages/fx_cast/ ````sh