ansible-edda/playbooks/roles/services/deploy/cloud/templates/systemd/container-cloud-redis.service

36 lines
1.2 KiB
SYSTEMD
Raw Normal View History

[Unit]
Description=Podman container-cloud-redis.service
Documentation=man:podman-generate-systemd(1)
Wants=network.target
After=network-online.target
BindsTo=pod-cloud.service
After=pod-cloud.service
2023-08-18 13:07:16 +02:00
Before=container-cloud-nextcloud.service
OnFailure=status-mail@%n.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/container-cloud-redis.pid %t/container-cloud-redis.ctr-id
ExecStart=/usr/bin/podman run \
--conmon-pidfile %t/container-cloud-redis.pid \
--cidfile %t/container-cloud-redis.ctr-id \
--cgroups=no-conmon \
--pod-id-file %t/pod-cloud.pod-id \
--replace \
--label "io.containers.autoupdate=image" \
--log-driver=journald \
-dt \
-v {{ system_etc_root_directory }}/resolv.conf:/etc/resolv.conf:ro \
2023-10-21 15:51:21 +02:00
-v pod-cloud-redis---data:/data \
--name=pod-cloud-redis \
docker.io/library/redis:{{ services_service_deploy_versions.redis }}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-cloud-redis.ctr-id -t 10
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-cloud-redis.ctr-id
PIDFile=%t/container-cloud-redis.pid
Type=forking
[Install]
WantedBy=multi-user.target default.target