23 lines
415 B
Desktop File
23 lines
415 B
Desktop File
[Unit]
|
|
Description=NetBox WSGI Service
|
|
Documentation=https://docs.netbox.dev/
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
User=netbox
|
|
Group=netbox
|
|
PIDFile=/var/run/netbox.pid
|
|
WorkingDirectory=/etc/netbox
|
|
|
|
ExecStart=/bin/bash -c '$$(ls -1 /usr/bin/uwsgi_python*) --ini /etc/netbox/uwsgi.ini'
|
|
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|