Skip to content

Commit

Permalink
Add Restart=always to Gunicorn systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnoln committed Dec 4, 2022
1 parent b14947a commit d93d7f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ansible/systemd.gunicorn.service.j2
Expand Up @@ -7,6 +7,7 @@ User={{ ansible_user }}
Group={{ ansible_user }}
WorkingDirectory=/home/{{ ansible_user }}/sites/{{ site_name }}/source
ExecStart=/home/{{ ansible_user }}/sites/{{ site_name }}/virtualenv/bin/gunicorn --bind unix:/tmp/{{ site_name }}.socket cvdb.wsgi:application --workers 3
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit d93d7f2

Please sign in to comment.