Add install instructions for the daemon in systemd (#193)

This commit is contained in:
Thijs Wouters
2021-11-21 23:33:38 +01:00
committed by GitHub
parent 75c0ece666
commit 8a9f146d68

View File

@@ -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). 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 ### Package managers
* #### Arch Linux (AUR) - https://aur.archlinux.org/packages/fx_cast/ * #### Arch Linux (AUR) - https://aur.archlinux.org/packages/fx_cast/
````sh ````sh