2019-10-02 13:48:03 +00:00
|
|
|
#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 }}
|
|
|
|
|
2019-11-24 22:31:47 +00:00
|
|
|
ExecStartPre={{ freshrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
|
|
|
|
ExecStart={{ freshrss_docker_compose_bin }} up --remove-orphans
|
2019-10-02 13:48:03 +00:00
|
|
|
|
2019-11-24 22:31:47 +00:00
|
|
|
ExecStop={{ freshrss_docker_compose_bin }} down --remove-orphans
|
2019-10-02 13:48:03 +00:00
|
|
|
|
2019-11-24 22:31:47 +00:00
|
|
|
ExecReload={{ freshrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
|
2019-10-02 13:48:03 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|