bundlewrap/bundles/powerdnsadmin/files/powerdnsadmin.service
2021-02-12 13:28:52 +01:00

15 lines
436 B
Desktop File

[Unit]
Description=PowerDNS-Admin
After=network.target
Requires=postgresql.service
[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()'
[Install]
WantedBy=multi-user.target