]> git.t-ch.net - podman-systemd-services.git/commitdiff
Update jellyfin pod service files
authorLexie Malina <alex@t-ch.net>
Sun, 19 Nov 2023 20:29:52 +0000 (14:29 -0600)
committerLexie Malina <alex@t-ch.net>
Sun, 19 Nov 2023 20:29:52 +0000 (14:29 -0600)
jellyfin/container-jellyfin.service
jellyfin/container-jellyseer.service
jellyfin/pod-jellyfin.service [new file with mode: 0644]

index 0c83dce52054d6e620ccf9483eb39e3d15bf9fe3..23bf15e9c22620a5b08fce358f54041c49cbb5cd 100644 (file)
@@ -1,36 +1,42 @@
-# container-cf53a61f24ddcf92f5a9ea5d8d5923148ed3b12ddd114cbd9157cd33c5af8bac.service
-# autogenerated by Podman 4.2.0
-# Sun Feb 26 00:58:33 EST 2023
+# container-307a7278265957d23e4c37a98627b2447b88d68cc300684f09870fbe581fbd84.service
+# autogenerated by Podman 4.6.1
+# Sun Nov 19 14:25:57 CST 2023
 
 [Unit]
-Description=Podman jellyfin
+Description=Podman Jellyfin
 Documentation=man:podman-generate-systemd(1)
 Wants=network-online.target
 After=network-online.target
 RequiresMountsFor=%t/containers
+BindsTo=pod-jellyfin.service
+After=pod-jellyfin.service
 
 [Service]
 Environment=PODMAN_SYSTEMD_UNIT=%n
 Restart=on-failure
 TimeoutStopSec=70
-ExecStartPre=/bin/rm -f %t/%n.ctr-id
 ExecStart=/usr/bin/podman run \
-       --cidfile=%t/%n.ctr-id \
-       --cgroups=no-conmon \
-       --rm \
-       --sdnotify=conmon \
-       --replace \
-       --name jellyfin-server \
-       --label io.containers.autoupdate=registry \
-       --env JELLYFIN_PublishedServerUrl=https://media.littleoni.net \
-       --pod Jellyfin \
-       -d \
-       -i \
-       -t docker.io/jellyfin/jellyfin:latest
-ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
-ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
+        --cidfile=%t/%n.ctr-id \
+        --cgroups=no-conmon \
+        --rm \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id \
+        --sdnotify=conmon \
+        --replace \
+        --name jellyfin-server \
+        --label io.containers.autoupdate=registry \
+        --env JELLYFIN_PublishedServerUrl=https://media.littleoni.net \
+        -d \
+        -i \
+        -t docker.io/jellyfin/jellyfin:latest
+ExecStop=/usr/bin/podman stop \
+        --ignore -t 10 \
+        --cidfile=%t/%n.ctr-id
+ExecStopPost=/usr/bin/podman rm \
+        -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 8c8faeb39ca255f4289ae99f7c32d6c2cd93a260..47977da45683ef872f6fc7cc94f6d5d0551010ca 100644 (file)
@@ -1,37 +1,39 @@
-# container-08f507142e8ea1493420c7b5a156d9ea9adfdaad1bbcb9521a349fbe259e9988.service
-# autogenerated by Podman 4.4.1
-# Sat Jul  1 13:33:06 EDT 2023
+# container-e5611fbbb70867ee75a67f2be5eb543e5ccab705a62e0278f9e1b2aff9558a4d.service
+# autogenerated by Podman 4.6.1
+# Sun Nov 19 14:25:57 CST 2023
 
 [Unit]
-Description=Podman jellyseer
+Description=Podman JellySeerr
 Documentation=man:podman-generate-systemd(1)
 Wants=network-online.target
 After=network-online.target
 RequiresMountsFor=%t/containers
+BindsTo=pod-jellyfin.service
+After=pod-jellyfin.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 Jellyfin \
-       --name jellyseer docker.io/fallenbagel/jellyseerr
+        --cidfile=%t/%n.ctr-id \
+        --cgroups=no-conmon \
+        --rm \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id \
+        --sdnotify=conmon \
+        --replace \
+        --label io.containers.autoupdate=registry \
+        -d \
+        --name jellyseerr docker.io/fallenbagel/jellyseerr
 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/jellyfin/pod-jellyfin.service b/jellyfin/pod-jellyfin.service
new file mode 100644 (file)
index 0000000..dba84bd
--- /dev/null
@@ -0,0 +1,43 @@
+# pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.service
+# autogenerated by Podman 4.6.1
+# Sun Nov 19 14:25:57 CST 2023
+
+[Unit]
+Description=Podman Jellyfin pod
+Documentation=man:podman-generate-systemd(1)
+Wants=network-online.target
+After=network-online.target
+RequiresMountsFor=/run/containers/storage
+Wants=container-jellyfin.service container-jellyseer.service
+Before=container-jellyfin.service container-jellyseer.service
+
+[Service]
+Environment=PODMAN_SYSTEMD_UNIT=%n
+Restart=on-failure
+TimeoutStopSec=70
+ExecStartPre=/usr/bin/podman pod create \
+        --infra-conmon-pidfile %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pid \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id \
+        --exit-policy=stop \
+        --replace \
+        -p 8002:8096 \
+        -p 8003:5055 \
+        -v /mnt/nfs/silo/Media:/media \
+        -v jellyfin:/config \
+        -v jellyseer:/app/config \
+        --name Jellyfin
+ExecStart=/usr/bin/podman pod start \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id
+ExecStop=/usr/bin/podman pod stop \
+        --ignore \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id  \
+        -t 10
+ExecStopPost=/usr/bin/podman pod rm \
+        --ignore \
+        -f \
+        --pod-id-file %t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pod-id
+PIDFile=%t/pod-b9e189bc7183a0f7618bdc29a2970719ff9131da3ae45b0492c735c5f0895de0.pid
+Type=forking
+
+[Install]
+WantedBy=default.target
\ No newline at end of file