Files
netbox-plugin-dns-bridge/docs/install-systemd-service.md
T
Sven Luethi 19a946c880 - Split bind transfer command into multiple files for better code readability.
- Rename bind-transfer-endpoint command -> dns-transfer-endpoint.
2026-02-05 12:27:28 +01:00

853 B

  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 dns-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