coreos-home-server/config/common/systemd/container-volume@.service

13 lines
316 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Container Volume for %I
Wants=container-volume-restore@%i.service container-volume-backup@%i.timer
After=container-volume-restore@%i.service
[Service]
Type=oneshot
SyslogIdentifier=%N
ExecStart=/bin/sh -c 'podman volume exists %i || podman volume create %i'
[Install]
WantedBy=multi-user.target