Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/templates/netbox/netbox.service.erb
- This file was added.
[Unit] | |||||
Description=NetBox WSGI Service | |||||
Documentation=https://netbox.readthedocs.io/en/stable/ | |||||
After=network-online.target | |||||
Wants=network-online.target | |||||
[Service] | |||||
Type=simple | |||||
User=netbox | |||||
Group=netbox | |||||
PIDFile=/var/tmp/netbox.pid | |||||
WorkingDirectory=<%= @netbox_home %> | |||||
ExecStart=<%= @netbox_home %>/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath <%= @netbox_home %>/netbox --config <%= @netbox_home %>/gunicorn.py netbox.wsgi | |||||
Restart=on-failure | |||||
RestartSec=30 | |||||
PrivateTmp=true | |||||
[Install] | |||||
WantedBy=multi-user.target |