From 2ee7378075b4c03b389c6b111f4c0221c91ccdd2 Mon Sep 17 00:00:00 2001 From: Francesco Antognazza Date: Mon, 17 Apr 2023 14:44:23 +0200 Subject: [PATCH] Add container dependency in systemd service --- containers/gitea/tasks.yml | 1 + containers/nextcloud/tasks.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/containers/gitea/tasks.yml b/containers/gitea/tasks.yml index fa4dce6..392c737 100644 --- a/containers/gitea/tasks.yml +++ b/containers/gitea/tasks.yml @@ -160,6 +160,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-db_gitea] time: 3600 names: true new: true diff --git a/containers/nextcloud/tasks.yml b/containers/nextcloud/tasks.yml index 73215f0..818e67c 100644 --- a/containers/nextcloud/tasks.yml +++ b/containers/nextcloud/tasks.yml @@ -195,6 +195,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-db_nextcloud, container-redis_nextcloud] time: 3600 names: true new: true