summarylogtreecommitdiffstats
path: root/netbox.service
diff options
context:
space:
mode:
Diffstat (limited to 'netbox.service')
-rw-r--r--netbox.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/netbox.service b/netbox.service
new file mode 100644
index 000000000000..c040ac973563
--- /dev/null
+++ b/netbox.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Netbox Daemon
+After=network.target
+
+[Service]
+User=netbox
+Type=simple
+WorkingDirectory=/var/lib/netbox
+ExecStart=/usr/bin/gunicorn -w 2 -b unix:/run/netbox/netbox.sock --pythonpath /var/lib/netbox netbox.wsgi
+
+[Install]
+WantedBy=multi-user.target