I am trying to start gunicorn on bootup of my machine but when I check the status of my service after enabling and starting it I get an error starting start-limit-hit. I have tried using sudo systemctl restart ssh as suggested in How to resolve service start limit hit. This is my .service file:
[Unit]
Requires=myproject.socket
After = network.target
[Service]
Restart=always
User=ubuntu
WorkingDirectory=/home/ubuntu/myproject
ExecStart=/home/ubuntu/myproject/venv36/bin/gunicorn -w 1 -b 0.0.0.0:8080 wsgi:$
Type=simple
[Install]
WantedBy=multi-user.target
My .socket file:
[Socket]
ListenStream=/run/myproject/socket
[Install]
WantedBy=sockets.target