more service file fixes

This commit is contained in:
Jens Timmerman 2020-09-12 00:57:38 +02:00
parent 3bdd331dc5
commit 6ea653a95a
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@
- name: 'download latest im stable'
get_url:
dest: "{{im_home}}/im-latest.tar.gz"
url: https://gitea.caret.be/jens/im/archive/main.tar.gz
owner: im
group: im
mode: '0400'

View File

@ -3,9 +3,9 @@ Description=im pantry inventory management server trought gunicorn
After=network.target
[Service]
User={{ im_user }}
User=root
WorkingDirectory={{ im_home }}/im
ExecStart=gunicorn --workers {{im_workers}} --bind {{ im_http_listen }}:{{ im_http_port }} im.wsgi:application
ExecStart=gunicorn -g={{im_user}} -u={{im_user}} --workers {{im_workers}} --bind {{ im_http_listen }}:{{ im_http_port }} im.wsgi:application
Restart=on-failure