home-pods/container-ects-scraper.service

27 lines
626 B
SYSTEMD
Raw Permalink Normal View History

2023-05-21 17:53:15 +02:00
[Unit]
Description=Podman container-ects-scraper.service
Wants=network-online.target
After=network-online.target
[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 \
--name=ects-scraper \
-v ects-scraper-cache:/cache:z \
-d \
-p 5467:8000 ects-scraper
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