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

[Unit]
Description={{ item.replace("_", " ").title() }} (Queue Consumer)
Requires=redis.service
After=redis.service
PartOf=redis.service
[Service]
User={{ app_username }}
Group={{ app_username }}
WorkingDirectory={{ app_dir }}/consumers
Environment="INI_FILE={{ app_dir }}/{{ ini_file }}"
ExecStart={{ bin_dir }}/python {{ item }}.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target