xoxys.freshrss_docker/templates/etc/systemd/system/freshrss.service.j2
Robert Kaussow 630eb39f81
Some checks failed
continuous-integration/drone/push Build is failing
add variable for compose binary
2019-11-24 23:25:19 +01:00

23 lines
647 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=TT-RSS news feed reader
Requires=docker.service network-online.target
After=docker.service network-online.target
[Service]
WorkingDirectory={{ freshrss_service_directory }}
Type=simple
TimeoutStartSec=15min
Restart={{ freshrss_restart_policy }}
ExecStartPre={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
ExecStart={{ ttrss_docker_compose_bin }} up --remove-orphans
ExecStop={{ ttrss_docker_compose_bin }} down --remove-orphans
ExecReload={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
[Install]
WantedBy=multi-user.target