Specify dependency of containers

This commit is contained in:
Francesco Antognazza 2024-04-12 14:06:57 +02:00
parent 2e1ca1d1b6
commit 2fd17c1319
7 changed files with 7 additions and 2 deletions

View File

@ -76,6 +76,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure restart_policy: on-failure
requires: [container-nextcloud.service, container-traefik.service]
names: true names: true
new: true new: true

View File

@ -85,6 +85,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure restart_policy: on-failure
requires: [container-traefik.service]
names: true names: true
new: true new: true

View File

@ -160,7 +160,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure restart_policy: on-failure
requires: [container-db_gitea.service] requires: [container-db_gitea.service, container-traefik.service]
names: true names: true
new: true new: true

View File

@ -78,6 +78,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure restart_policy: on-failure
requires: [container-traefik.service]
names: true names: true
new: true new: true

View File

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=Nextcloud cron.php job Description=Nextcloud cron.php job
Wants=nextcloudcron.timer Wants=nextcloudcron.timer
Requires=container-nextcloud.service
[Service] [Service]
ExecStart=/bin/podman exec -u www-data nextcloud php -f /var/www/html/cron.php ExecStart=/bin/podman exec -u www-data nextcloud php -f /var/www/html/cron.php

View File

@ -194,7 +194,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure 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 names: true
new: true new: true

View File

@ -70,6 +70,7 @@
generate_systemd: generate_systemd:
path: /home/containers/.config/systemd/user/ path: /home/containers/.config/systemd/user/
restart_policy: on-failure restart_policy: on-failure
requires: [container-traefik.service]
names: true names: true
new: true new: true