mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-01 16:53:07 +01:00
37 lines
934 B
SYSTEMD
37 lines
934 B
SYSTEMD
|
# container-offlineimap.service
|
||
|
# autogenerated by Podman 4.1.1
|
||
|
# Tue Aug 16 12:45:40 CDT 2022
|
||
|
|
||
|
[Unit]
|
||
|
Description=Podman container-offlineimap.service
|
||
|
Documentation=man:podman-generate-systemd(1)
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
RequiresMountsFor=%t/containers
|
||
|
|
||
|
[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 \
|
||
|
-d \
|
||
|
--replace \
|
||
|
-it \
|
||
|
--name offlineimap \
|
||
|
--network host \
|
||
|
-v /var/home/jas/mail:/mail:Z \
|
||
|
-v /var/home/jas/.offlineimap-metadata:/metadata:Z \
|
||
|
-v /var/home/jas/.offlineimaprc:/.offlineimaprc:Z localhost/offlineimap
|
||
|
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
||
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||
|
Type=notify
|
||
|
NotifyAccess=all
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|