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
416 B

[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 }}/{{ ini_file }}"
ExecStart={{ bin_dir }}/python postgresql_redis_bridge.py
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target