mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-22 17:22:52 +02:00
4cc100ab02
This changes the site to run on Debian 10 instead of Ubuntu 16.04. It also fully converts the previous Salt setup to use Ansible instead. Most of this was a relatively straightforward conversion, and it should be very close to equivalent. One notable difference is that I removed the setup for the "monitoring" server, since I wasn't confident that the way of setting up self-hosted Sentry and Grafana was working any more. I'll look to re-add that at some point, but it's not urgent.
18 lines
416 B
Django/Jinja
18 lines
416 B
Django/Jinja
[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
|