diff --git a/containers/collabora/tasks.yml b/containers/collabora/tasks.yml index 8d5791b..03e578d 100644 --- a/containers/collabora/tasks.yml +++ b/containers/collabora/tasks.yml @@ -76,6 +76,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-nextcloud.service, container-traefik.service] names: true new: true diff --git a/containers/drone-server/tasks.yml b/containers/drone-server/tasks.yml index 0866d5c..4ad3493 100644 --- a/containers/drone-server/tasks.yml +++ b/containers/drone-server/tasks.yml @@ -85,6 +85,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-traefik.service] names: true new: true diff --git a/containers/gitea/tasks.yml b/containers/gitea/tasks.yml index 942dc79..d3ef707 100644 --- a/containers/gitea/tasks.yml +++ b/containers/gitea/tasks.yml @@ -160,7 +160,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure - requires: [container-db_gitea.service] + requires: [container-db_gitea.service, container-traefik.service] names: true new: true diff --git a/containers/heimdall/tasks.yml b/containers/heimdall/tasks.yml index 1abc4a6..37a08fe 100644 --- a/containers/heimdall/tasks.yml +++ b/containers/heimdall/tasks.yml @@ -78,6 +78,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-traefik.service] names: true new: true diff --git a/containers/nextcloud/files/systemd/nextcloudcron.service b/containers/nextcloud/files/systemd/nextcloudcron.service index be39832..cc81c0e 100644 --- a/containers/nextcloud/files/systemd/nextcloudcron.service +++ b/containers/nextcloud/files/systemd/nextcloudcron.service @@ -1,6 +1,7 @@ [Unit] Description=Nextcloud cron.php job Wants=nextcloudcron.timer +Requires=container-nextcloud.service [Service] ExecStart=/bin/podman exec -u www-data nextcloud php -f /var/www/html/cron.php diff --git a/containers/nextcloud/tasks.yml b/containers/nextcloud/tasks.yml index ae16c49..655da91 100644 --- a/containers/nextcloud/tasks.yml +++ b/containers/nextcloud/tasks.yml @@ -194,7 +194,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure - requires: [container-db_nextcloud.service, container-redis_nextcloud.service] + requires: [container-db_nextcloud.service, container-redis_nextcloud.service, container-traefik.service] names: true new: true diff --git a/containers/portainer/tasks.yml b/containers/portainer/tasks.yml index d517365..4309e93 100644 --- a/containers/portainer/tasks.yml +++ b/containers/portainer/tasks.yml @@ -70,6 +70,7 @@ generate_systemd: path: /home/containers/.config/systemd/user/ restart_policy: on-failure + requires: [container-traefik.service] names: true new: true