Loosen systemd dependencies for services
This commit is contained in:
parent
3bb8704c15
commit
e00c25db9d
@ -2,7 +2,7 @@
|
||||
Description=Podman container-cloud-chown.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
After=pod-cloud.service
|
||||
Before=container-cloud-nextcloud.service container-cloud-cron.service
|
||||
Before=container-cloud-nextcloud.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
@ -27,4 +27,4 @@ ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-cloud-chown.c
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=container-cloud-nextcloud.service container-cloud-cron.service
|
||||
WantedBy=multi-user.target default.target
|
||||
|
@ -3,9 +3,8 @@ Description=Podman container-cloud-cron.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-cloud.service
|
||||
Requires=container-cloud-chown.service
|
||||
After=pod-cloud.service container-cloud-chown.service
|
||||
BindsTo=pod-cloud.service container-cloud-nextcloud.service
|
||||
After=pod-cloud.service container-cloud-nextcloud.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,9 +3,12 @@ Description=Podman container-cloud-nextcloud.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-cloud.service
|
||||
Requires=container-cloud-chown.service container-cloud-redis.service
|
||||
After=pod-cloud.service container-cloud-chown.service container-cloud-redis.service
|
||||
BindsTo=pod-cloud.service container-cloud-redis.service
|
||||
After=pod-cloud.service container-cloud-redis.service
|
||||
Requires=container-cloud-chown.service
|
||||
After=container-cloud-chown.service
|
||||
Wants=container-cloud-cron.service container-cloud-nginx.service
|
||||
Before=container-cloud-cron.service container-cloud-nginx.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,7 +3,7 @@ Description=Podman container-cloud-nginx.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-cloud.service
|
||||
BindsTo=pod-cloud.service container-cloud-nextcloud.service
|
||||
After=pod-cloud.service container-cloud-nextcloud.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -5,7 +5,6 @@ Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-cloud.service
|
||||
After=pod-cloud.service
|
||||
Before=container-cloud-nextcloud.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,8 +3,8 @@ Description=Podman pod-cloud.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-cloud-nginx.service container-cloud-redis.service container-cloud-nextcloud.service container-cloud-cron.service
|
||||
Before=container-cloud-nginx.service container-cloud-redis.service container-cloud-nextcloud.service container-cloud-cron.service
|
||||
Wants=container-cloud-nextcloud.service
|
||||
Before=container-cloud-nextcloud.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-dash.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-dash-grafana.service
|
||||
Wants=container-dash-grafana.service
|
||||
Before=container-dash-grafana.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -5,6 +5,8 @@ Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-database.service
|
||||
After=pod-database.service
|
||||
Wants=container-database-pgadmin.service
|
||||
Before=container-database-pgadmin.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,8 +3,8 @@ Description=Podman pod-database.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-database-postgres.service container-database-pgadmin.service
|
||||
Before=container-database-postgres.service container-database-pgadmin.service
|
||||
Wants=container-database-postgres.service
|
||||
Before=container-database-postgres.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-git.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-git-gitea.service
|
||||
Wants=container-git-gitea.service
|
||||
Before=container-git-gitea.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-metrics.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-metrics-prometheus.service
|
||||
Wants=container-metrics-prometheus.service
|
||||
Before=container-metrics-prometheus.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-music.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-music-collection.service container-music-archive.service
|
||||
Wants=container-music-collection.service container-music-archive.service
|
||||
Before=container-music-collection.service container-music-archive.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-notes.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-notes-joplin.service
|
||||
Wants=container-notes-joplin.service
|
||||
Before=container-notes-joplin.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
@ -5,6 +5,8 @@ Wants=network.target
|
||||
After=network-online.target
|
||||
BindsTo=pod-{{ services_service_name }}.service
|
||||
After=pod-{{ services_service_name }}.service
|
||||
Wants=container-{{ services_service_name }}-certbot.service
|
||||
Before=container-{{ services_service_name }}-certbot.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,8 +3,8 @@ Description=Podman pod-{{ services_service_name }}.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-{{ services_service_name }}-nginx.service container-{{ services_service_name }}-certbot.service
|
||||
Before=container-{{ services_service_name }}-nginx.service container-{{ services_service_name }}-certbot.service
|
||||
Wants=container-{{ services_service_name }}-nginx.service
|
||||
Before=container-{{ services_service_name }}-nginx.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
[Service]
|
||||
|
@ -3,7 +3,7 @@ Description=Podman pod-www.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network.target
|
||||
After=network-online.target
|
||||
Requires=container-www-nginx.service
|
||||
Wants=container-www-nginx.service
|
||||
Before=container-www-nginx.service
|
||||
OnFailure=status-mail@%n.service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user