modified: docs/install-systemd-service.md
Correct naming in service unit
This commit is contained in:
1 parent
ad52457c48
commit
3eb58f9b29
1 file changed
+7
-7
@@ -1,9 +1,9 @@
|
|||||||
1. Create System Unit file
|
1. Create System Unit file
|
||||||
```
|
```
|
||||||
cat <<EOF > /etc/systemd/system/netbox-bind-endpoint.service
|
cat <<EOF > /etc/systemd/system/netbox-dns-endpoint.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Netbox BIND Catalog Endpoing
|
Description=Netbox DNS transfer endpoint
|
||||||
Documentation=https://github.com/Suraxius/netbox-plugin-bind-provisioner
|
Documentation=https://github.com/Suraxius/netbox-plugin-dns-bridge
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
PIDFile=/var/tmp/netbox.pid
|
PIDFile=/var/tmp/netbox.pid
|
||||||
WorkingDirectory=/opt/netbox
|
WorkingDirectory=/opt/netbox
|
||||||
|
|
||||||
ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py dns-transfer-endpoint --port 5354
|
ExecStart=/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py dns-transfer-endpoint --address 0.0.0.0 --port 5354
|
||||||
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=30
|
RestartSec=30
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
2. Enable and start the service
|
2. Enable and start the service
|
||||||
```
|
```
|
||||||
systemctl enable netbox-bind-endpoint
|
systemctl enable netbox-dns-endpoint
|
||||||
systemctl start netbox-bind-endpoint
|
systemctl start netbox-dns-endpoint
|
||||||
systemctl status netbox-bind-endpoint
|
systemctl status netbox-dns-endpoint
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user