[Unit] Description=fosspay website Wants=network.target Wants=postgresql.target Before=network.target Before=postgresql.target [Service] Type=simple WorkingDirectory=/home/sircmpwn/fosspay/ ExecStart=/usr/local/bin/gunicorn app:app -b 127.0.0.1:5000 ExecStop=/usr/bin/pkill gunicorn [Install] WantedBy=multi-user.target