paulbsd-salt/states/netbox/templates/netbox.service.j2
2020-07-10 00:58:55 +02:00

18 lines
466 B
Django/Jinja

## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "netbox/map.jinja" import netbox with context -%}
[Unit]
Description=Netbox
After=network.target postgresql.service redis.service
[Service]
Type=notify
NotifyAccess=all
LimitNOFILE=8192
ExecStart={{ netbox.install_dir }}/netbox/bin/gunicorn -c {{ netbox.install_dir }}/netbox/gunicorn.py netbox.wsgi
KillMode=process
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target