25 lines
623 B
Desktop File
25 lines
623 B
Desktop File
[Unit]
|
|
Description=Mail web app (gunicorn + gevent)
|
|
After=network.target docker.service postgresql.service redis.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=deeily
|
|
Group=deeily
|
|
WorkingDirectory=/home/deeily/mail
|
|
EnvironmentFile=/home/deeily/mail/.env
|
|
ExecStart=/home/deeily/mail/.venv/bin/gunicorn -c gunicorn.conf.py wsgi:app
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=mixed
|
|
KillSignal=SIGTERM
|
|
TimeoutStopSec=10
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StandardOutput=append:/var/log/mail-flask.log
|
|
StandardError=append:/var/log/mail-flask.log
|
|
SyslogIdentifier=mail-flask
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|