bundlewrap/bundles/powerdnsadmin/files/powerdnsadmin.service

16 lines
554 B
SYSTEMD
Raw Permalink Normal View History

2020-10-16 18:10:34 +00:00
[Unit]
Description=PowerDNS-Admin
After=network.target
Requires=postgresql.service
2020-10-16 18:10:34 +00:00
[Service]
User=powerdnsadmin
Group=powerdnsadmin
Environment=FLASK_CONF=/opt/powerdnsadmin/config.py
WorkingDirectory=/opt/powerdnsadmin/src
ExecStartPre=-/bin/chown powerdnsadmin:powerdnsadmin /opt/powerdnsadmin/src/powerdnsadmin/static
ExecStart=/opt/powerdnsadmin/venv/bin/gunicorn 'powerdnsadmin:create_app()' --name powerdnsadmin --workers 4 --max-requests 1200 --max-requests-jitter 50 --log-level=info --bind=127.0.0.1:22100
2020-10-16 18:10:34 +00:00
[Install]
WantedBy=multi-user.target