Unit gunicorn.service failed to load: No such file or directory

You need to create gunicorn.service in /etc/systemd/system. Next, add this code to it and replace user , myproject and myprojectenv accordingly.

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=user
Group=nginx
WorkingDirectory=/home/user/myproject
ExecStart=/home/user/myproject/myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/user/myproject/myproject.sock myproject.wsgi:application

[Install]
WantedBy=multi-user.target