2020-07-10 00:58:55 +02:00
|
|
|
{%- from "netbox/map.jinja" import netbox with context -%}
|
2022-02-21 13:52:46 +01:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2020-07-10 00:58:55 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Netbox
|
|
|
|
After=network.target postgresql.service redis.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
|
|
|
LimitNOFILE=8192
|
2022-06-08 23:49:12 +02:00
|
|
|
ExecStart={{ netbox.install_dir }}/netbox/.venv/bin/gunicorn -c {{ netbox.install_dir }}/netbox/gunicorn.py netbox.wsgi
|
2020-07-10 00:58:55 +02:00
|
|
|
KillMode=process
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=15
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|