]> git.t-ch.net - podman-systemd-services.git/commitdiff
Updaed services to maybe allow autoupdate
authorLexie Malina <alex@t-ch.net>
Sun, 19 Nov 2023 16:57:19 +0000 (10:57 -0600)
committerLexie Malina <alex@t-ch.net>
Sun, 19 Nov 2023 16:57:19 +0000 (10:57 -0600)
nextcloud/container-nextcloud-mariadb.service
nextcloud/container-nextcloud.service
nextcloud/pod-nextcloud.service [new file with mode: 0644]

index 3bb88668422dbbae5393b83342242b0ffc4336df..2b1871581e135673c4ea2cb1716108b88d2107e3 100644 (file)
@@ -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
index 7edd9744df3c7d46eb56e2a27b401f5dbc940b78..30f1f696e09704bd2b791abb153339558bf6087e 100644 (file)
@@ -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 (file)
index 0000000..b5dfbd7
--- /dev/null
@@ -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