more service file fixes
This commit is contained in:
parent
3bdd331dc5
commit
6ea653a95a
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue