mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-04 06:43:11 +02:00
add systemd to docs
This commit is contained in:
parent
c48581b22b
commit
08c181760f
29
README.md
29
README.md
|
@ -42,6 +42,35 @@ directory, but a different path can be passed through the `--config` option.
|
||||||
|
|
||||||
$ ./bin/signaling --config /etc/signaling/server.conf
|
$ ./bin/signaling --config /etc/signaling/server.conf
|
||||||
|
|
||||||
|
### Running as daemon
|
||||||
|
|
||||||
|
#### systemd
|
||||||
|
|
||||||
|
Create a dedicated user:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo useradd --system \
|
||||||
|
--gid signaling \
|
||||||
|
--shell /usr/sbin/nologin \
|
||||||
|
--comment "Standalone signaling server for Nextcloud Talk." \
|
||||||
|
signaling
|
||||||
|
```
|
||||||
|
|
||||||
|
Copy `server.conf.in` to `/etc/signaling/server.conf` and fix permissions:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo chmod 600 /etc/signaling/server.conf
|
||||||
|
sudo chown signaling: /etc/signaling/server.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Copy `dist/init/systemd/signaling.service` to `/etc/systemd/system/signaling.service` (adjust abs. path in `ExecStart` to match your binary location!)
|
||||||
|
|
||||||
|
Enable and start service:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl enable signaling.service
|
||||||
|
systemctl start signaling.service
|
||||||
|
```
|
||||||
|
|
||||||
## Setup of NATS server
|
## Setup of NATS server
|
||||||
|
|
||||||
|
|
11
dist/init/systemd/signaling.service
vendored
Normal file
11
dist/init/systemd/signaling.service
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Talk signaling server
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/signaling --config /etc/signaling/server.conf
|
||||||
|
User=signaling
|
||||||
|
Group=signaling
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue