mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
24 lines
511 B
SYSTEMD
24 lines
511 B
SYSTEMD
|
[Unit]
|
||
|
Description=Netbox WSGI
|
||
|
Documentation=https://netbox.readthedocs.io/en/stable/
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
|
||
|
EnvironmentFile=/etc/sysconfig/netbox.%i.env
|
||
|
|
||
|
User=www-data
|
||
|
Group=www-data
|
||
|
PIDFile=${PidPath}
|
||
|
WorkingDirectory=${WorkingDirectory}
|
||
|
|
||
|
ExecStart=/usr/local/bin/gunicorn --pid ${PidPath} --pythonpath ${WorkingDirectory}/netbox --config ${ConfigPath} netbox.wsgi
|
||
|
|
||
|
Restart=on-failure
|
||
|
RestartSec=30
|
||
|
PrivateTmp=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|