From 8df90ebbfad9e2c5f7a71fde35650e5c173575c2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 24 Nov 2019 23:23:22 +0100 Subject: [PATCH] refactor systemd unit --- templates/etc/systemd/system/drone.service.j2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/etc/systemd/system/drone.service.j2 b/templates/etc/systemd/system/drone.service.j2 index cb33ede..7a31000 100644 --- a/templates/etc/systemd/system/drone.service.j2 +++ b/templates/etc/systemd/system/drone.service.j2 @@ -9,11 +9,12 @@ After=docker.service Restart={{ droneci_restart_policy }} WorkingDirectory={{ droneci_service_directory }} -ExecStartPre={{ droneci_docker_compose_bin }} down -ExecStartPre={{ droneci_docker_compose_bin }} rm -f +ExecStartPre={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures +ExecStart={{ ttrss_docker_compose_bin }} up --remove-orphans -ExecStart={{ droneci_docker_compose_bin }} up -ExecStop={{ droneci_docker_compose_bin }} down +ExecStop={{ ttrss_docker_compose_bin }} down --remove-orphans + +ExecReload={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures [Install] WantedBy=multi-user.target