... | ... | @@ -147,6 +147,19 @@ This config instructs the proxy to listen on 192.168.0.100:31200 for nds2 connec |
|
|
|
|
|
Add a systemd unit file with the following contents
|
|
|
<pre>
|
|
|
[Unit]
|
|
|
Description=NDS HA proxy
|
|
|
After=network-online.target
|
|
|
|
|
|
[Service]
|
|
|
ExecStart=/usr/bin/nds-proxy -config /etc/ndsproxy/ndsproxy.json
|
|
|
User=ndsproxy
|
|
|
Restart=always
|
|
|
RestartSec=5s
|
|
|
LimitNOFILE=40000:40000
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|
|
|
</pre>
|
|
|
|
|
|
Enable the service
|
... | ... | @@ -155,3 +168,28 @@ systemctl daemon-reload |
|
|
systemctl enable nds-ha-proxy
|
|
|
systemctl start nds-ha-proxy
|
|
|
</pre>
|
|
|
|
|
|
### Install of the metadata server
|
|
|
|
|
|
The metadata server tracks the channel history over time. This tracks the channels when channels exist and what frame types they exist in.
|
|
|
|
|
|
<pre>
|
|
|
apt-get install nds-metadata-server
|
|
|
</pre>
|
|
|
|
|
|
Create a systemd unit file /etc/systemd/system/nds-metadata-server.service with the following contents.
|
|
|
<pre>
|
|
|
[Unit]
|
|
|
Description=NDS metadata server
|
|
|
After=remote-fs.target network-online.target
|
|
|
|
|
|
[Service]
|
|
|
# note the diskcache and channel-lists will need some better defining
|
|
|
# and do not yet work in this example.
|
|
|
ExecStart=/usr/bin/nds_metadata_server -listen 127.0.0.1:31202 -diskcache nds.dcs:11300 -channel-lists /var/lib/ndsmetadata/channel-lists.txt
|
|
|
User=nds
|
|
|
LimitNOFILE=40000:40000
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|
|
|
</pre> |
|
|
\ No newline at end of file |