[Unit] Description=WebVirtCloud panel (gunicorn) Wants=network-online.target After=network-online.target [Service] User=www-data Group=www-data WorkingDirectory=/srv/webvirtcloud EnvironmentFile=-/etc/default/webvirtcloud ExecStart=/srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py # gunicorn stops its workers itself; the rest of the group is killed after the timeout KillMode=mixed TimeoutStopSec=90 Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target