From c92639cd72a9e694c502da0d408d781b3f40f096 Mon Sep 17 00:00:00 2001 From: Lexie Malina Date: Sun, 19 Nov 2023 10:57:19 -0600 Subject: [PATCH] Updaed services to maybe allow autoupdate --- nextcloud/container-nextcloud-mariadb.service | 48 +++++++++---------- nextcloud/container-nextcloud.service | 40 ++++++++-------- nextcloud/pod-nextcloud.service | 43 +++++++++++++++++ 3 files changed, 88 insertions(+), 43 deletions(-) create mode 100644 nextcloud/pod-nextcloud.service diff --git a/nextcloud/container-nextcloud-mariadb.service b/nextcloud/container-nextcloud-mariadb.service index 3bb8866..2b18715 100644 --- a/nextcloud/container-nextcloud-mariadb.service +++ b/nextcloud/container-nextcloud-mariadb.service @@ -1,41 +1,41 @@ -# container-2334b190834d2954b2853f7cc1b669487c4d825a11b437b9370033b41fe98d5b.service -# autogenerated by Podman 4.4.1 -# Sat Jul 1 11:36:06 EDT 2023 +# container-c1b06d9f63b4c0f6ab06a8c086f9dcb66e8e10954d17e7efd576a093e3eda87c.service +# autogenerated by Podman 4.6.1 +# Sun Nov 19 10:46:34 CST 2023 [Unit] -Description=Podman nextcloud-mariadb +Description=Podman Nextcloud Mariadb Documentation=man:podman-generate-systemd(1) Wants=network-online.target After=network-online.target -After=container-nextcloud-mariadb.service RequiresMountsFor=%t/containers - +BindsTo=pod-nextcloud.service +After=pod-nextcloud.service [Service] Environment=PODMAN_SYSTEMD_UNIT=%n -Restart=always +Restart=on-failure TimeoutStopSec=70 ExecStart=/usr/bin/podman run \ - --cidfile=%t/%n.ctr-id \ - --cgroups=no-conmon \ - --rm \ - --sdnotify=conmon \ - --replace \ - --label io.containers.autoupdate=registry \ - -d \ - -e MARIADB_DATABASE=nextcloud \ - -e MARIADB_ROOT_PASSWORD=MajorMalfunciton507 \ - --pod nextcloud \ - --name nextcloud-mariadb docker.io/mariadb:latest + --cidfile=%t/%n.ctr-id \ + --cgroups=no-conmon \ + --rm \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id \ + --sdnotify=conmon \ + --replace \ + --label io.containers.autoupdate=registry \ + -d \ + -e MARIADB_DATABASE=nextcloud \ + -e MARIADB_ROOT_PASSWORD=MajorMalfunciton507 \ + --name nextcloud-mariadb docker.io/mariadb:latest ExecStop=/usr/bin/podman stop \ - --ignore -t 10 \ - --cidfile=%t/%n.ctr-id + --ignore -t 10 \ + --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm \ - -f \ - --ignore -t 10 \ - --cidfile=%t/%n.ctr-id + -f \ + --ignore -t 10 \ + --cidfile=%t/%n.ctr-id Type=notify NotifyAccess=all [Install] -WantedBy=default.target +WantedBy=default.target \ No newline at end of file diff --git a/nextcloud/container-nextcloud.service b/nextcloud/container-nextcloud.service index 7edd974..30f1f69 100644 --- a/nextcloud/container-nextcloud.service +++ b/nextcloud/container-nextcloud.service @@ -1,37 +1,39 @@ -# container-b0a5a44a70b7479075434443fbb42b228c6526c3ebfdf59a3435a9c0011d2ccd.service -# autogenerated by Podman 4.4.1 -# Tue Jun 6 09:40:46 EDT 2023 +# container-887f9e349e6c3b69eb84e0284ef5bf0b2cca2b132c5df893928ee42643505b93.service +# autogenerated by Podman 4.6.1 +# Sun Nov 19 10:46:34 CST 2023 [Unit] -Description=Podman Container nextcloud +Description=Podman Nextcloud Documentation=man:podman-generate-systemd(1) Wants=network-online.target After=network-online.target RequiresMountsFor=%t/containers +BindsTo=pod-nextcloud.service +After=pod-nextcloud.service [Service] Environment=PODMAN_SYSTEMD_UNIT=%n Restart=on-failure TimeoutStopSec=70 ExecStart=/usr/bin/podman run \ - --cidfile=%t/%n.ctr-id \ - --cgroups=no-conmon \ - --rm \ - --sdnotify=conmon \ - --replace \ - --label io.containers.autoupdate=registry \ - -d \ - --pod nextcloud \ - --name Nextcloud docker.io/library/nextcloud:apache + --cidfile=%t/%n.ctr-id \ + --cgroups=no-conmon \ + --rm \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id \ + --sdnotify=conmon \ + --replace \ + --label io.containers.autoupdate=registry \ + -d \ + --name Nextcloud docker.io/library/nextcloud:apache ExecStop=/usr/bin/podman stop \ - --ignore -t 10 \ - --cidfile=%t/%n.ctr-id + --ignore -t 10 \ + --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm \ - -f \ - --ignore -t 10 \ - --cidfile=%t/%n.ctr-id + -f \ + --ignore -t 10 \ + --cidfile=%t/%n.ctr-id Type=notify NotifyAccess=all [Install] -WantedBy=default.target +WantedBy=default.target \ No newline at end of file diff --git a/nextcloud/pod-nextcloud.service b/nextcloud/pod-nextcloud.service new file mode 100644 index 0000000..b5dfbd7 --- /dev/null +++ b/nextcloud/pod-nextcloud.service @@ -0,0 +1,43 @@ +# pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.service +# autogenerated by Podman 4.6.1 +# Sun Nov 19 10:46:34 CST 2023 + +[Unit] +Description=Podman Nextcloud Pod +Documentation=man:podman-generate-systemd(1) +Wants=network-online.target +After=network-online.target +RequiresMountsFor=/run/containers/storage +Wants=container-nextcloud-mariadb.service container-nextcloud-mariadb.service +Before=container-nextcloud-mariadb.service container-nextcloud-mariadb.service + +[Service] +Environment=PODMAN_SYSTEMD_UNIT=%n +Restart=on-failure +TimeoutStopSec=70 +ExecStartPre=/usr/bin/podman pod create \ + --infra-conmon-pidfile %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pid \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id \ + --exit-policy=stop \ + --replace \ + -p 8001:80 \ + -p 3306:3306 \ + -v /mnt/nfs/silo/Nextcloud/:/var/www/html \ + -v nextcloud-mariadb-data:/var/lib/mysql \ + --replace \ + --name nextcloud +ExecStart=/usr/bin/podman pod start \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id +ExecStop=/usr/bin/podman pod stop \ + --ignore \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id \ + -t 10 +ExecStopPost=/usr/bin/podman pod rm \ + --ignore \ + -f \ + --pod-id-file %t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pod-id +PIDFile=%t/pod-5662976524d876b14d7a3e2e563b95e6e716d0a63eeb63298f52dce9a8346e87.pid +Type=forking + +[Install] +WantedBy=default.target \ No newline at end of file -- 2.42.0