mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Add install instructions for the daemon in systemd (#193)
This commit is contained in:
20
README.md
20
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).
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user