[Unit] Description=Podman pod-torrent.service Wants=network-online.target After=network-online.target RequiresMountsFor= Requires=container-qbittorrent.service Before=container-qbittorrent.service [Service] Environment=PODMAN_SYSTEMD_UNIT=%n Restart=on-failure TimeoutStopSec=70 ExecStartPre=/bin/rm -f %t/pod-torrent.pid %t/pod-torrent.pod-id ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-torrent.pid --pod-id-file %t/pod-torrent.pod-id -p 54822:8080 -p 57490:6881 -p 57490:6881/udp --name torrent --network=vpn-net --replace ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-torrent.pod-id ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-torrent.pod-id -t 10 ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-torrent.pod-id PIDFile=%t/pod-torrent.pid Type=forking [Install] WantedBy=default.target