xoxys.freshrss_docker/templates/etc/systemd/system/freshrss.service.j2

23 lines
660 B
Plaintext
Raw Normal View History

2019-10-02 13:48:03 +00:00
#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
2020-02-01 16:54:40 +00:00
Description=FreshRSS feed aggregator
2019-10-02 13:48:03 +00:00
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