You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
401 B

  1. [Unit]
  2. Description={{ item.replace("_", " ").title() }} (Queue Consumer)
  3. Requires=redis.service
  4. After=redis.service
  5. PartOf=redis.service
  6. [Service]
  7. User={{ app_username }}
  8. Group={{ app_username }}
  9. WorkingDirectory={{ app_dir }}/consumers
  10. Environment="INI_FILE={{ app_dir }}/{{ ini_file }}"
  11. ExecStart={{ bin_dir }}/python {{ item }}.py
  12. Restart=always
  13. RestartSec=5
  14. [Install]
  15. WantedBy=multi-user.target