|
@ -1,4 +1,4 @@ |
|
|
{% from 'common.jinja2' import app_dir, bin_dir -%} |
|
|
|
|
|
|
|
|
{% from 'common.jinja2' import app_dir, app_username, bin_dir -%} |
|
|
[Unit] |
|
|
[Unit] |
|
|
Description=Topic Interesting Activity Updater (Queue Consumer) |
|
|
Description=Topic Interesting Activity Updater (Queue Consumer) |
|
|
Requires=redis.service |
|
|
Requires=redis.service |
|
@ -6,6 +6,8 @@ After=redis.service |
|
|
PartOf=redis.service |
|
|
PartOf=redis.service |
|
|
|
|
|
|
|
|
[Service] |
|
|
[Service] |
|
|
|
|
|
User={{ app_username }} |
|
|
|
|
|
Group={{ app_username }} |
|
|
WorkingDirectory={{ app_dir }}/consumers |
|
|
WorkingDirectory={{ app_dir }}/consumers |
|
|
Environment="INI_FILE={{ app_dir }}/{{ pillar['ini_file'] }}" |
|
|
Environment="INI_FILE={{ app_dir }}/{{ pillar['ini_file'] }}" |
|
|
ExecStart={{ bin_dir }}/python topic_interesting_activity_updater.py |
|
|
ExecStart={{ bin_dir }}/python topic_interesting_activity_updater.py |
|
|