2020-09-10 22:31:09 +00:00
|
|
|
[Unit]
|
|
|
|
Description=im pantry inventory management server trought gunicorn
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-09-11 22:57:38 +00:00
|
|
|
User=root
|
2020-09-11 22:50:49 +00:00
|
|
|
WorkingDirectory={{ im_home }}/im
|
2020-09-11 22:57:38 +00:00
|
|
|
ExecStart=gunicorn -g={{im_user}} -u={{im_user}} --workers {{im_workers}} --bind {{ im_http_listen }}:{{ im_http_port }} im.wsgi:application
|
2020-09-10 22:31:09 +00:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|