ansible-ffibk/roles/pdns-admin/templates/powerdns-admin.service.j2

14 lines
336 B
Text
Raw Normal View History

[Unit]
Description=PowerDNS-Admin
After=network.target
[Service]
User=root
Group=root
WorkingDirectory={{ pdns_admin_path }}
ExecStart={{ pdns_admin_python_venv_path }}/bin/gunicorn --workers 2 --bind unix:{{ pdns_admin_path }}/powerdns-admin.sock app:app
Environment="PATH={{ pdns_admin_path }}"
[Install]
WantedBy=multi-user.target