mirror of https://gitlab.com/tildes/tildes.git
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.
18 lines
492 B
18 lines
492 B
{% from 'common.jinja2' import app_dir, app_username, bin_dir -%}
|
|
[Unit]
|
|
Description=postgresql_redis_bridge - convert NOTIFY to Redis streams
|
|
Requires=redis.service
|
|
After=redis.service
|
|
PartOf=redis.service
|
|
|
|
[Service]
|
|
User={{ app_username }}
|
|
Group={{ app_username }}
|
|
WorkingDirectory={{ app_dir }}/scripts
|
|
Environment="INI_FILE={{ app_dir }}/{{ pillar['ini_file'] }}"
|
|
ExecStart={{ bin_dir }}/python postgresql_redis_bridge.py
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|