1 parent
57195a822b
commit
787c3d0a20
2 files changed
+39
-2
No files matched your search
@@ -116,8 +116,11 @@ This guide assumes:
|
|||||||
|
|
||||||
5. Start listener
|
5. Start listener
|
||||||
This step runs the DNS endpoint used by bind to configure itself. You may want
|
This step runs the DNS endpoint used by bind to configure itself. You may want
|
||||||
to write a service wrapper that runs this in the background. Dont forget to
|
to write a service wrapper that runs this in the background.
|
||||||
activate the venv if you do decide to run this service in the background.
|
A guide for setting up a systemd service on Ubuntu is provided by Matt
|
||||||
|
Kollross [here](docs/install-systemd-service.md). Dont forget to activate
|
||||||
|
the venv if you do decide to run this service in the background.
|
||||||
|
|
||||||
Note that `--port 5354` is optional. The listener will bind this port
|
Note that `--port 5354` is optional. The listener will bind this port
|
||||||
by default.
|
by default.
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
1. Create System Unit file
|
||||||
|
```
|
||||||
|
cat <<EOF > /etc/systemd/system/netbox-bind-endpoint.service
|
||||||
|
[Unit]
|
||||||
|
Description=Netbox BIND Catalog Endpoing
|
||||||
|
Documentation=https://github.com/Suraxius/netbox-plugin-bind-provisioner
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
User=netbox
|
||||||
|
Group=netbox
|
||||||
|
PIDFile=/var/tmp/netbox.pid
|
||||||
|
WorkingDirectory=/opt/netbox
|
||||||
|
|
||||||
|
ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py bind-transfer-endpoint --port 5354
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=30
|
||||||
|
PrivateTmp=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Enable and start the service
|
||||||
|
```
|
||||||
|
systemctl enable netbox-bind-endpoint
|
||||||
|
systemctl start netbox-bind-endpoint
|
||||||
|
systemctl status netbox-bind-endpoint
|
||||||
|
```
|
||||||
Reference in new issue
Block a user